From abec3392c833baf906bda26534c5173999173c85 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Thu, 23 May 2024 09:24:17 +0200 Subject: [PATCH] Fix page header Add summray as a fllback to descriptiona and remove doubled comma in keywords --- themes/tsc_vfl/layouts/partials/page/head.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/themes/tsc_vfl/layouts/partials/page/head.html b/themes/tsc_vfl/layouts/partials/page/head.html index 59a387bb..5096effe 100644 --- a/themes/tsc_vfl/layouts/partials/page/head.html +++ b/themes/tsc_vfl/layouts/partials/page/head.html @@ -3,8 +3,14 @@ - {{ with .Params.description }}{{ end }} - {{ with .Keywords }}{{ end }} + {{ with .Params.description }} + + {{ else }} + {{ with .Params.summary }} + + {{ end }} + {{ end }} + {{ with .Keywords }}{{ end }} {{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }} {{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}