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: f125cffd1c1152530bf5d114bd12fb14fd0be4ec (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
35
36
37
38
39
40
41
42
<div
  class="text-tertiary-text not-proseme mt-2 flex flex-row flex-wrap items-center"
>
  <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>