culinary.kemonine.info/themes/vnovel/layouts/partials/seo/extend.html

25 lines
633 B
HTML

{{/*
Add/Edit SEO Scratch Object
@author The New Dynamic
@access public
@context Page
User does not load the partial, as the component will.
This allows to overwrite some SEO object keys with project's own.
Project's partial should live under `layouts/partials/seo/extend.html`
@example - In Partial
{{- if eq "Type" "recipe" -}}
{{- .Scratch.SetInMap "seo" "type" "article" -}}
{{- end -}}
{{- $locales := dict "fr" "fr_FR" "en" "en_US" -}}
{{- .Scratch.SetInMap "seo" "locale" (index $locales .Lang) -}}
{{- if .IsHome -}}
{{- .Scratch.SetInMap "seo" "title" "Welcome Home" -}}
{{- end -}}
*/}}