Update Logic
This commit is contained in:
parent
94ab910470
commit
378d0f14d6
|
@ -4,19 +4,22 @@
|
||||||
<section class="metadata">
|
<section class="metadata">
|
||||||
<i data-feather="calendar"></i>
|
<i data-feather="calendar"></i>
|
||||||
{{ if .PublishDate }}
|
{{ if .PublishDate }}
|
||||||
{{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }}
|
{{ if and (ne $lastmodTime $dateTime) (gt .Lastmod .Date) }}
|
||||||
<time datetime="{{ $lastmodTime }}">{{ .Lastmod.Format $dateFormat }}</time>
|
<time datetime="{{ $lastmodTime }}">{{ .Lastmod.Format $dateFormat }}</time>
|
||||||
(first posted <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>)
|
(first posted <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>)
|
||||||
|
{{ else }}
|
||||||
|
Date Published: <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Params.tags }}
|
||||||
|
<br>
|
||||||
|
Tags: <i data-feather="tag"></i>
|
||||||
|
{{ range . }}
|
||||||
|
{{ $href := print "/tags/" (urlize .) }}
|
||||||
|
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
Date Published: <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
</section>
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ with .Params.tags }}
|
|
||||||
<br>
|
|
||||||
Tags: <i data-feather="tag"></i>
|
|
||||||
{{ range . }}
|
|
||||||
{{ $href := print "/tags/" (urlize .) }}
|
|
||||||
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</section>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue