diff options
author | Daisuke Konishi <8408838+dsk52@users.noreply.github.com> | 2021-05-04 20:34:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 20:34:57 +0300 |
commit | 10598e1b0286010f52a30312eae07ef67078b1ad (patch) | |
tree | 2d1e9b0b79fa2d7ec0884ec26529f34e4d7d5551 | |
parent | 94612c873d717e7e55f3019892c4bdfef5e56f1e (diff) | |
parent | fbf3a94649862ba8801e4c4f14b0b6c24c2da23d (diff) |
Merge pull request #76 from dsk52/develop
Develop
-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": { |