diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index b76a791..456c5b1 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -24,11 +24,7 @@ {{ end }} - {{ if .IsHome }} - {{ .Site.Title | plainify }} - {{ else }} - {{ (print .Title " | " .Site.Title) | plainify }} - {{ end }} + {{ .Render "head_title" }} {{ partial "seo-tags/opengraph.html" . }} {{ partial "seo-tags/twitter-cards.html" . }} diff --git a/layouts/authors/term.head_title.html b/layouts/authors/term.head_title.html new file mode 100644 index 0000000..10e7573 --- /dev/null +++ b/layouts/authors/term.head_title.html @@ -0,0 +1 @@ +{{ (print .Title "'s Posts | " .Site.Title) | plainify }} diff --git a/layouts/head_title.html b/layouts/head_title.html new file mode 100644 index 0000000..4d28117 --- /dev/null +++ b/layouts/head_title.html @@ -0,0 +1 @@ +{{ (print .Title " | " .Site.Title) | plainify }} diff --git a/layouts/home.head_title.html b/layouts/home.head_title.html new file mode 100644 index 0000000..84f94b0 --- /dev/null +++ b/layouts/home.head_title.html @@ -0,0 +1 @@ +{{ .Site.Title | plainify }}