jlelse
/
Indieroad
Archived
1
Fork 0

Add Permalink to date in meta

This commit is contained in:
Jan-Lukas Else 2019-11-25 19:46:03 +01:00
parent 6f2e43e913
commit 04d5f3b2db
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{{ if not .Params.nometa }}
{{ if not .Date.IsZero }}
<div class="item">
<time class="dt-published text" datetime="{{.Date.Format "2006-01-02 15:04"}}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>
<time class="dt-published text" 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>
</div>
{{ end }}
{{ if ne .Date .Lastmod }}