2018-01-24 09:42:50 +00:00
|
|
|
<div class="post">
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ if ne .Params.showpagemeta false }}
|
|
|
|
<div class="col-sm-12 col-md-12">
|
|
|
|
<span class="text-left post-date meta">
|
|
|
|
<!-- published date -->
|
2018-03-29 23:49:07 +00:00
|
|
|
{{ if not .Date.IsZero }}
|
|
|
|
<i class="fas fa-calendar-alt"></i>
|
|
|
|
{{ if isset .Site.Params "dateformat" -}}
|
|
|
|
{{ .Date.Format .Site.Params.dateformat }}
|
|
|
|
{{- else -}}
|
|
|
|
{{ .Date.Format "Jan 02 2006" }}
|
|
|
|
{{- end -}}
|
|
|
|
{{ end }}
|
2018-01-24 09:42:50 +00:00
|
|
|
<!-- categories -->
|
|
|
|
{{ if isset .Params "categories" }}
|
|
|
|
{{ $total := len .Params.categories }}
|
|
|
|
{{ if gt $total 0 }}
|
|
|
|
in
|
|
|
|
{{ $total := sub $total 1 }}
|
|
|
|
{{ range $i, $cat := sort $.Params.categories }}
|
|
|
|
<a class="meta" href="{{ "/categories/" | relURL }}{{ $cat | urlize }}">{{ $cat | upper }}</a>
|
|
|
|
{{ if lt $i $total }},{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<!-- tags -->
|
|
|
|
{{ if isset .Params "tags" }}
|
|
|
|
{{ $total := len .Params.tags }}
|
|
|
|
{{ if gt $total 0 }}
|
|
|
|
<br/>
|
2018-03-29 23:49:07 +00:00
|
|
|
{{ $subtotal := sub $total 1 }} <i class="fas fa-tags"></i>
|
2018-01-24 09:42:50 +00:00
|
|
|
{{ range $i, $tag := sort $.Params.tags }}
|
2018-02-18 10:10:01 +00:00
|
|
|
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">{{ $tag | lower }}</a>{{ if lt $i $subtotal }} {{ end }}
|
2018-01-24 09:42:50 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|