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

article_footer.html « partials « layouts - github.com/balaramadurai/hugo-travelify-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa87db1204129f3c3f4a85dac83b9d4759502ddc (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
{{ if not .Params.meta_disable }}
    {{ $date_format := .Site.Params.date_format }}
<div class="entry-meta-bar clearfix">
  <div class="entry-meta">
    {{ if isset .Params "author" }}
    <span class="byline">
      <span class="author vcard">
        {{ $url := printf "author/%s" (.Params.author | urlize | lower) }}
	<a class="url fn n" href="{{ $url | absURL }}">{{ .Params.author | lower }}</a>
      </span>
    </span>
    {{ end }}

    {{ if not .Params.nodateline }}
    {{ if not .Site.Params.date_format }}
    {{ $date_format := .Site.Params.date_format }}
    {{ end }}
    <span class="posted-on">
      <time class="entry-date published" datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format $date_format }}</time>
    </span>
    {{ end }}

    {{ if isset .Params "categories" }}
    {{ $categoriesLen := len .Params.categories }}
    {{ if gt $categoriesLen 0 }}
    <span class="category">
      {{ range $k, $v := .Params.categories }}
      {{ with site.GetPage (printf "/%s/%s" "categories" ($v | urlize)) }}
      <a class="article-category-link" href="{{ .Permalink }}">{{ $v }}</a>
      {{ if lt $k (sub $categoriesLen 1) }},{{ end }}
      {{ end }}
      {{ end }}
    </span>
    {{ end }}
    {{ end }}
    {{ if and (not (eq .Site.DisqusShortname "")) (not .Params.disable_comments) }}
    <span class="comments">
      <a href="{{ .Permalink }}#disqus_thread">{{with .Site.Data.l10n.articles.comments}}{{.}}{{end}}
      </a>
    </span>
    {{ end }}
  </div>
  {{ else }}

{{ end }}