diff options
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/json-single.html | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9ae0ab1..c6925ef 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,7 +5,7 @@ <header class="c-post__header"> <h1 class="c-post__title">{{ .Title }}</h1> <div class="c-post__header__meta"> - <time class="c-pub-time" datetime="{{ .Date.Format " 2006-01-02T15:04:05Z07:00 " | safeHTML }}"> + <time class="c-pub-time" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> {{ .Lastmod.Format ( .Site.Params.dateformat | default "2006.01.02") }} </time> {{ if .Params.tags }} diff --git a/layouts/partials/json-single.html b/layouts/partials/json-single.html index c34b20c..3433eda 100644 --- a/layouts/partials/json-single.html +++ b/layouts/partials/json-single.html @@ -10,15 +10,15 @@ "publisher": { "@type": "Organization", "name": "{{ .Site.Params.author }}", - "logo": "{{ .Site.BaseURL }}{{ .Site.Params.logo }}", + "logo": "{{ .Site.BaseURL }}{{ .Site.Params.logo }}" }, "image": "{{ .Site.BaseURL }}{{ .Params.image }}", - "datePublished": "{{ .Date.Format "2006-01-02" }}" + "datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" }, "headline": "{{ substr (replace (.Content) "\n" "") 0 110 }}", "alternativeHeadline": "{{ .Site.Title }}", - "datePublished": "{{ .Date.Format "2006-01-02" }}", - "dateModified": "{{ .Lastmod.Format "2006-01-02" }}", + "datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}", + "dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}", "url": "{{ .Permalink }}", "wordCount": "{{ .WordCount }}", "author": { |