~alanorth/hugo-theme-bootstrap4-blog

63e36db2d5c60bee8f4e12ff63a577f8f9e196ae — Alan Orth 3 years ago 4ab2e0d + c1b3e97
Merge pull request #111 from TommySprat/dateformat-escape-fix

Do not escape characters in formatted date
2 files changed, 4 insertions(+), 4 deletions(-)

M layouts/_default/list.html
M layouts/_default/single.html
M layouts/_default/list.html => layouts/_default/list.html +1 -1
@@ 12,7 12,7 @@
  },
  {{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
  {{- if not .Date.IsZero }}
  "dateModified": "{{ .Date.Format $ISO8601 }}",
  "dateModified": {{ .Date.Format $ISO8601 }},
  {{- end }}
  {{- with .Site.Social.GooglePlus }}
  "publisher": "{{ printf "%s" . }}",

M layouts/_default/single.html => layouts/_default/single.html +3 -3
@@ 25,12 25,12 @@
  "wordCount": "{{ .WordCount }}",
  {{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
  {{- if not .PublishDate.IsZero }}
  "datePublished": "{{ .PublishDate.Format $ISO8601 }}",
  "datePublished": {{ .PublishDate.Format $ISO8601 }},
  {{- else }}
  "datePublished": "{{ .Date.Format $ISO8601 }}",
  "datePublished": {{ .Date.Format $ISO8601 }},
  {{- end }}
  {{- if not .Lastmod.IsZero }}
  "dateModified": "{{ .Lastmod.Format $ISO8601 }}",
  "dateModified": {{ .Lastmod.Format $ISO8601 }},
  {{- end }}
  {{- with .Site.Social.GooglePlus }}
  "publisher": "{{ printf "%s" . }}",