Blog: Only show change date, if newer than publish

This commit is contained in:
jtbx 2023-11-29 22:56:18 +01:00 committed by jtbx (Jannik)
parent 2710137012
commit 63d29bb1e2

View file

@ -11,9 +11,11 @@
{{- with .Params.publishDate }} {{- with .Params.publishDate }}
<small class="li-comma">Veröffentlicht: {{ .Format "2006-01-02 15:04" }}</small> <small class="li-comma">Veröffentlicht: {{ .Format "2006-01-02 15:04" }}</small>
{{- end }} {{- end }}
{{- if .Params.lastmod.After .Params.publishDate }}
{{- with .Params.lastmod }} {{- with .Params.lastmod }}
<small class="li-comma">letzte Änderung: {{ .Format "2006-01-02 15:04" }}</small> <small class="li-comma">letzte Änderung: {{ .Format "2006-01-02 15:04" }}</small>
{{- end }} {{- end }}
{{- end }}
</div> </div>
</article> </article>
</main> </main>