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 }}