Skip to content

Commit

Permalink
tpl: Use .Lastmod in embedded schema template
Browse files Browse the repository at this point in the history
Fixes #5320
  • Loading branch information
akshaybabloo authored and bep committed Oct 16, 2018
1 parent a205f24 commit c21e517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates.autogen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{if .IsPage}}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }}
<meta itemprop="datePublished" content="{{ .PublishDate.Format $ISO8601 | safeHTML }}" />{{ end }}
{{ if not .Date.IsZero }}<meta itemprop="dateModified" content="{{ .Date.Format $ISO8601 | safeHTML }}" />{{ end }}
{{ if not .Lastmod.IsZero }}<meta itemprop="dateModified" content="{{ .Lastmod.Format $ISO8601 | safeHTML }}" />{{ end }}
<meta itemprop="wordCount" content="{{ .WordCount }}">
{{ with .Params.images }}{{ range first 6 . }}
<meta itemprop="image" content="{{ . | absURL }}">
Expand Down

0 comments on commit c21e517

Please sign in to comment.