add font-awesome calendar icon for post date
This commit is contained in:
parent
22e70c239e
commit
e214a227b6
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
<div class="col-sm-12 col-md-12">
|
<div class="col-sm-12 col-md-12">
|
||||||
<span class="text-left post-date meta">
|
<span class="text-left post-date meta">
|
||||||
<!-- published date -->
|
<!-- published date -->
|
||||||
{{ if not .Date.IsZero }} {{ .Date.Format .Site.Params.dateformat }} {{end}}
|
{{ if not .Date.IsZero }} <i class="fa fa-calendar" aria-hidden="true"></i> {{ .Date.Format .Site.Params.dateformat }} {{end}}
|
||||||
<!-- categories -->
|
<!-- categories -->
|
||||||
{{ if isset .Params "categories" }}
|
{{ if isset .Params "categories" }}
|
||||||
{{ $total := len .Params.categories }}
|
{{ $total := len .Params.categories }}
|
||||||
|
@ -22,9 +22,9 @@
|
||||||
{{ $total := len .Params.tags }}
|
{{ $total := len .Params.tags }}
|
||||||
{{ if gt $total 0 }}
|
{{ if gt $total 0 }}
|
||||||
<br/>
|
<br/>
|
||||||
{{ $subtotal := sub $total 1 }}
|
{{ $subtotal := sub $total 1 }} <i class="fa fa-tags" aria-hidden="true"></i>
|
||||||
{{ range $i, $tag := sort $.Params.tags }}
|
{{ range $i, $tag := sort $.Params.tags }}
|
||||||
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">#{{ $tag | lower }}</a>{{ if lt $i $subtotal }} {{ end }}
|
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">{{ $tag | lower }}</a>{{ if lt $i $subtotal }} {{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue