Process schema values

master
Will Faught 5 months ago
parent 13792839f8
commit d13a32311e

@ -17,7 +17,7 @@
{{ $authors := partial "paige/func-authors.html" $page }}
{{ $images := $page.Params.images | default slice }}
{{ $keywords := sort (union (union $page.Keywords $page.Params.tags) $page.Params.categories) }}
{{ $license := $page.Param "paige.site.license" | markdownify | plainify }}
{{ $license := $page.Param "paige.site.license" | markdownify | plainify | htmlUnescape }}
{{ $schema := newScratch }}
{{ $videos := $page.Params.videos | default slice }}
@ -26,11 +26,11 @@
{{ $schema.Set "url" $page.Permalink }}
{{ with $page.Summary }}
{{ $schema.Set "abstract" (. | plainify | chomp) }}
{{ $schema.Set "abstract" (. | markdownify | plainify | htmlUnescape | chomp) }}
{{ end }}
{{ with $page.Description }}
{{ $schema.Set "alternativeHeadline" (plainify .) }}
{{ $schema.Set "alternativeHeadline" (. | markdownify | plainify | htmlUnescape) }}
{{ end }}
{{ with $page.CurrentSection.Title }}
@ -79,7 +79,7 @@
{{ end }}
{{ with site.Copyright }}
{{ $schema.Set "copyrightNotice" (plainify .) }}
{{ $schema.Set "copyrightNotice" (. | markdownify | plainify | htmlUnescape) }}
{{ end }}
{{ if and (not $page.Date.IsZero) (ne $page.Date $page.PublishDate) }}
@ -95,7 +95,7 @@
{{ end }}
{{ with $page.Description }}
{{ $schema.Set "description" (plainify .) }}
{{ $schema.Set "description" (. | markdownify | plainify | htmlUnescape) }}
{{ end }}
{{ if not $page.ExpiryDate.IsZero }}
@ -103,7 +103,7 @@
{{ end }}
{{ with $page.Title }}
{{ $schema.Set "headline" (plainify .) }}
{{ $schema.Set "headline" (. | markdownify | plainify | htmlUnescape) }}
{{ end }}
{{ with $images }}
@ -198,11 +198,11 @@
{{ end }}
{{ with $license }}
{{ $schema.Set "license" (plainify .) }}
{{ $schema.Set "license" . }}
{{ end }}
{{ with $page.Title }}
{{ $schema.Set "name" (plainify .) }}
{{ $schema.Set "name" (. | markdownify | plainify | htmlUnescape) }}
{{ end }}
{{ with $page.ReadingTime }}

Loading…
Cancel
Save