Blog: Only show change date, if newer than publish
This commit is contained in:
parent
2710137012
commit
63d29bb1e2
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue