diff --git a/config.yaml b/config.yaml index fffbfed6b09fd6b719d172ea6c0e392193ddca9e..1f3e4c12d46098a66ab30424b16a649d170d829e 100644 --- a/config.yaml +++ b/config.yaml @@ -33,6 +33,9 @@ params: footer: "/assets/images/logo.svg" organizations: dark_logo_background: false + seo: + title: + separator: "|" image_sizes: design_system: lightbox: diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html index 93ad3f2eb3ea8913e27db9c6a28168623771e057..25a18d98472a768aa5eeee4147e413ef81ceeb29 100644 --- a/layouts/partials/head/seo.html +++ b/layouts/partials/head/seo.html @@ -1,6 +1,8 @@ +{{- $title := chomp (htmlUnescape .Title) -}} {{- $seoTitle := htmlUnescape site.Title -}} +{{- $seoTitleSeparator := htmlUnescape site.Params.seo.title.separator -}} {{- if .Title -}} - {{- $seoTitle = printf "%s | %s" (chomp (htmlUnescape .Title)) $seoTitle -}} + {{- $seoTitle = printf "%s %s %s" $title $seoTitleSeparator $seoTitle -}} {{- end -}} {{- $seoDescription := "" -}} {{- if .Params.meta_description -}}