mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-11 03:12:56 +00:00
(1) Add Project feature. (2) Fix exampleSite. (3) Various minor improvements.
This commit is contained in:
1 parent
80c7d04015
commit
af5deac2bf
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user