Blog: Only show change date, if newer than publish
This commit is contained in:
parent
2710137012
commit
63d29bb1e2
1 changed files with 2 additions and 0 deletions
|
@ -11,9 +11,11 @@
|
|||
{{- with .Params.publishDate }}
|
||||
<small class="li-comma">Veröffentlicht: {{ .Format "2006-01-02 15:04" }}</small>
|
||||
{{- end }}
|
||||
{{- if .Params.lastmod.After .Params.publishDate }}
|
||||
{{- with .Params.lastmod }}
|
||||
<small class="li-comma">letzte Änderung: {{ .Format "2006-01-02 15:04" }}</small>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
|
Loading…
Reference in a new issue