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

post-meta.html « content « partials « layouts - github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee77fb6b70ced3412839300ec8f7636e15de09e4 (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
43
44
45
46
47
<div class="post-meta">
  <div class="post-meta-item">
    <i class="fa fa-calendar"></i>
    <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format .Site.Data.Formats.date }}</time>

    {{ with .Params.author }}
      &middot; {{ $.Site.Data.Strings.byauthor }} {{ . }}
    {{ end }}
    &middot; {{ .ReadingTime }} {{ .Site.Data.Strings.metaReadinMinutes }}
    &middot; {{ .WordCount }} {{ .Site.Data.Strings.words }}
  </div>

  {{ if isset .Params "categories" }}
      {{ $categoriesLen := len .Params.categories }}
      {{ if gt $categoriesLen 0 }}
      <div class="post-meta-item">
          <i class="fa fa-folder-open-o"></i>
          {{ range $k, $v := .Params.categories }}
          <a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a>
          {{ if lt $k (sub $categoriesLen 1) }}&middot;{{ end }}
          {{ end }}
      </div>
      {{ end }}
  {{ end }}

  {{ if isset .Params "tags" }}
      {{ $tagsLen := len .Params.tags }}
      {{ if gt $tagsLen 0 }}
        <div class="post-meta-item">
          <i class="fa fa-tags"></i>
          {{ range $k, $v := .Params.tags }}
          <a href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}/">{{ . }}</a>
          {{ if lt $k (sub $tagsLen 1) }}&middot;{{ end }}
          {{ end }}
        </div>
      {{ end }}
  {{ end }}
  {{ if not (eq .Site.DisqusShortname "") }}
  <div class="post-meta-item">
    &nbsp;<i class="fa fa-comment-o"></i>
    <a href="{{ .Permalink }}#disqus_thread" class="article-comment-link">
         Comments
    </a>
  </div>
  {{end}}

</div>