jlelse
/
Indieroad
Archived
1
Fork 0

Show section in meta

This commit is contained in:
Jan-Lukas Else 2020-01-25 09:10:43 +01:00
parent 54ac42ad64
commit 0b9fb12420
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
{{ if not (eq .FirstSection.RelPermalink .RelPermalink) }}
<div class="item">
<a href="{{ .FirstSection.RelPermalink }}">{{ .FirstSection.Title }}</a>
</div>
{{ end }}
{{ if not .Date.IsZero }}
<div class="item">
<time class="dt-published" datetime="{{.Date.Format "2006-01-02 15:04"}}"><a class="u-url" href="{{ .RelPermalink }}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</a></time>