Skip to content
Snippets Groups Projects
Commit ee747de4 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

post date format in config

parent 56c7c70a
No related branches found
Tags v3.1.2
No related merge requests found
......@@ -9,6 +9,7 @@ params:
plausible:
posts:
default_image: false
date_format: ":date_long"
index:
show_categories: false
show_author: false
......
......@@ -38,7 +38,7 @@
{{- end -}}
<div class="post-meta">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format site.Params.posts.date_format }}</time>
{{ if site.Params.posts.index.show_author }}
{{- partial "posts/author" . -}}
{{ end }}
......
......@@ -13,7 +13,7 @@
{{ end }}
<li>
<span>{{ i18n "posts.date" }}</span>
<time datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
<time datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format site.Params.posts.date_format }}</time>
</li>
{{ range .GetTerms "authors" }}
<li>
......
......@@ -32,7 +32,7 @@
{{- end -}}
<div class="post-meta">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time>
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format site.Params.posts.date_format }}</time>
{{ if site.Params.posts.index.show_author }}
{{- partial "posts/author" . -}}
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment