34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
<div class="post-meta">
|
|
<div>
|
|
<i class="fa fa-calendar fa-fw"></i>
|
|
<time>{{ with .Site.Params.dateFormat }}{{ $.Date.Format . }}{{ else }}{{ .Date.Format "02 Jan 2006, 15:04" }}{{ end }}</time>
|
|
</div>
|
|
|
|
{{ $baseUrl := .Site.BaseURL }}
|
|
|
|
{{ if isset .Params "categories" }}
|
|
{{ $count := len .Params.categories }}
|
|
{{ if gt $count 0 }}
|
|
<div>
|
|
<i class="fa fa-folder fa-fw"></i>
|
|
{{ range $k, $v := .Params.categories }}
|
|
<a class="post-taxonomy-category" href="{{ $baseUrl }}categories/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }} /{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ if isset .Params "tags" }}
|
|
{{ $count := len .Params.tags }}
|
|
{{ if gt $count 0 }}
|
|
<div>
|
|
<i class="fa fa-tags fa-fw"></i>
|
|
{{ range $k, $v := .Params.tags }}
|
|
<a class="post-taxonomy-tag" href="{{ $baseUrl }}tags/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }} /{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
</div>
|