25 lines
975 B
HTML
Executable File
25 lines
975 B
HTML
Executable File
<i class="fa fa-calendar"></i>
|
|
<time datetime="{{ .Date }}">{{ .Date.Format .Site.Params.date_format }}</time>
|
|
|
|
{{ if isset .Params "categories" }}
|
|
{{ $categoriesLen := len .Params.categories }}
|
|
{{ if gt $categoriesLen 0 }}
|
|
<i class="fa fa-folder"></i>
|
|
{{ range $k, $v := .Params.categories }}
|
|
<a class="article-category-link" href="{{ $.Site.BaseURL }}categories/{{ . | urlize | lower }}">{{ . }}</a>
|
|
{{ if lt $k (sub $categoriesLen 1) }}·{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if isset .Params "tags" }}
|
|
{{ $tagsLen := len .Params.tags }}
|
|
{{ if gt $tagsLen 0 }}
|
|
<i class="fa fa-tags"></i>
|
|
{{ range $k, $v := .Params.tags }}
|
|
<a class="article-category-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a>
|
|
{{ if lt $k (sub $tagsLen 1) }}·{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|