fix missing meta description

This commit is contained in:
Robert Kaussow 2020-07-22 11:29:22 +02:00
parent 7231c988b7
commit e182cbbe74
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 5 additions and 1 deletions

View File

@ -62,3 +62,7 @@ params:
geekblogLegalNotice: https://thegeeklab.de/legal-notice/#contact-information geekblogLegalNotice: https://thegeeklab.de/legal-notice/#contact-information
geekblogPrivacyPolicy: https://thegeeklab.de/legal-notice/#privacy-policy 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.

View File

@ -1,6 +1,6 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ $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 }} {{ $keywords := default .Site.Params.GeekblogKeywords .Keywords }}
{{ $author := default (slice .Site.Params.GeekblogAuthor) .Params.authors }} {{ $author := default (slice .Site.Params.GeekblogAuthor) .Params.authors }}
{{ with $description }} {{ with $description }}