add tella theme
This commit is contained in:
25
themes/tella/layouts/partials/seo/extend.html
Normal file
25
themes/tella/layouts/partials/seo/extend.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{{/*
|
||||
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 -}}
|
||||
*/}}
|
||||
Reference in New Issue
Block a user