Permalink
Browse files

tpl: Use .Lastmod in embedded schema template

Fixes #5320
  • Loading branch information...
akshaybabloo authored and bep committed Oct 16, 2018
1 parent a205f24 commit c21e5179ce9a370c416c01fbe9472be1fb5c6650
Showing with 2 additions and 2 deletions.
  1. +1 −1 tpl/tplimpl/embedded/templates.autogen.go
  2. +1 −1 tpl/tplimpl/embedded/templates/schema.html

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -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 }}">

0 comments on commit c21e517

Please sign in to comment.