github.com/neohugo/neohugo@v0.123.8/tpl/tplimpl/embedded/templates/schema.html (about) 1 <meta itemprop="name" content="{{ .Title }}"> 2 <meta itemprop="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"> 3 4 {{- if .IsPage -}} 5 {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} 6 {{ with .PublishDate }}<meta itemprop="datePublished" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end}} 7 {{ with .Lastmod }}<meta itemprop="dateModified" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end}} 8 <meta itemprop="wordCount" content="{{ .WordCount }}"> 9 10 {{- $images := partial "_funcs/get-page-images" . -}} 11 {{- range first 6 $images -}} 12 <meta itemprop="image" content="{{ .Permalink }}" /> 13 {{- end -}} 14 15 <!-- Output all taxonomies as schema.org keywords --> 16 <meta itemprop="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" /> 17 {{- end -}}