mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 14:15:47 +00:00
22 lines
661 B
HTML
22 lines
661 B
HTML
<div class="article-metadata">
|
|
|
|
<span class="article-date">
|
|
<i class="fa fa-calendar"></i>
|
|
<time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
|
|
</span>
|
|
|
|
{{ if isset .Params "tags" }}
|
|
{{ $tagsLen := len .Params.tags }}
|
|
{{ if gt $tagsLen 0 }}
|
|
<span class="article-tags">
|
|
<i class="fa fa-tags"></i>
|
|
{{ range $k, $v := .Params.tags }}
|
|
<a class="article-tag-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a>
|
|
{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
</div>
|