From 9f3d37464592b2ee64d03d659ab9511cd48c76c0 Mon Sep 17 00:00:00 2001 From: Maik de Kruif Date: Thu, 11 Nov 2021 15:57:56 +0100 Subject: [PATCH] Make title look nicer --- themes/maik-blog/layouts/partials/head.html | 5 ++++- themes/maik-blog/layouts/partials/meta-tags.html | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/themes/maik-blog/layouts/partials/head.html b/themes/maik-blog/layouts/partials/head.html index 2252d14..32ab60b 100644 --- a/themes/maik-blog/layouts/partials/head.html +++ b/themes/maik-blog/layouts/partials/head.html @@ -45,7 +45,10 @@ {{- if .IsHome }} {{- $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }} {{- else }} - {{- .Title }} :: {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }} + {{- .Title }} + {{- with .Params.Subtitle }} // {{ . }} + {{- end }} :: {{ $.Site.Title }} + {{- with $.Site.Params.Subtitle }} — {{ . }}{{ end }} {{- end -}} {{- end }} \ No newline at end of file diff --git a/themes/maik-blog/layouts/partials/meta-tags.html b/themes/maik-blog/layouts/partials/meta-tags.html index e9da70c..332af65 100644 --- a/themes/maik-blog/layouts/partials/meta-tags.html +++ b/themes/maik-blog/layouts/partials/meta-tags.html @@ -11,7 +11,7 @@ + content="{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Params.title | plainify }}{{- with .Params.Subtitle }} // {{ . }}{{ end }}{{ end }}" /> @@ -55,7 +55,8 @@ {{- end }} - +