Skip to content
Snippets Groups Projects
Commit 6397146a authored by Arnaud Levy's avatar Arnaud Levy
Browse files

custom title separator

parent a92d1e8f
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@ params:
footer: "/assets/images/logo.svg"
organizations:
dark_logo_background: false
seo:
title:
separator: "|"
image_sizes:
design_system:
lightbox:
......
{{- $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 -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment