Welcome to mirror list, hosted at ThFree Co, Russian Federation.

post-metadata.html « components « partials « layouts - github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d108d56d12a862e60390596708487248754cb53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text">
    <div class="me-6 my-2">
        <i class="fas fa-calendar me-1"></i>
        <span>{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02") }}</span>
    </div>
    <div class="me-6 my-2">
        <i class="fas fa-clock me-1"></i>
        <span>{{ i18n "readingTime" .ReadingTime }}</span>
    </div>
    
    {{ with .GetTerms "categories" }}
    <div class="me-6 my-2">
        <i class="fas fa-folder me-1"></i>
        {{ range $index, $value := . }}
        {{ if gt $index 0 }}
        <span>, </span>
        {{ end -}}
        <a href="{{ .Permalink }}" class="hover:text-eureka">{{ .LinkTitle }}</a>
        {{ end }}
    </div>
    {{ end }}

    {{ with .GetTerms "series" }}
    <div class="me-6 my-2">
        <i class="fas fa-th-list me-1"></i>
        {{ range $index, $value := . }}
        {{ if gt $index 0 }}
        <span>, </span>
        {{ end -}}
        <a href="{{ .Permalink }}" class="hover:text-eureka">{{ .LinkTitle }}</a>
        {{ end }}
    </div>
    {{ end }}
</div>