add dateFmt option to single and summary views
This commit is contained in:
parent
730ddd9a1f
commit
41db6a77dc
3 changed files with 8 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
<main>
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b>
|
||||
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<article>
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
<b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b>
|
||||
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue