added param for disabling display of date on a page

This commit is contained in:
Michael Clemens 2022-06-07 16:38:04 +02:00
parent 498ff984a9
commit 5b246bad08
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@
<main>
<article>
<h1>{{ .Title }}</h1>
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
{{ if .Params.showthedate | default "true" }}
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
{{ end }}
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}