From e182cbbe74dd9e2d4ffece3d91d40f7007cc87b1 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 22 Jul 2020 11:29:22 +0200 Subject: [PATCH] fix missing meta description --- exampleSite/config.yml | 4 ++++ layouts/partials/head.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 4edd7ee..2e364e1 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -62,3 +62,7 @@ params: geekblogLegalNotice: https://thegeeklab.de/legal-notice/#contact-information geekblogPrivacyPolicy: https://thegeeklab.de/legal-notice/#privacy-policy + + geekblogDescription: > + hugo-geekblog is a simple Hugo theme for personal blogs. This page is theme documentation + and powered by the latest version of hugo-geekblog itself. diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e9fe032..8cb7beb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ -{{ $description := default .Site.Params.GeekblogDescription (default .Summary .Description) }} +{{ $description := default (default .Site.Title .Site.Params.GeekblogDescription) (default .Summary .Description) }} {{ $keywords := default .Site.Params.GeekblogKeywords .Keywords }} {{ $author := default (slice .Site.Params.GeekblogAuthor) .Params.authors }} {{ with $description }}