Skip to content

Commit

Permalink
fix missing meta description
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Jul 22, 2020
1 parent 7231c98 commit e182cbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions exampleSite/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<meta charset="UTF-8">
<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 }}
{{ $author := default (slice .Site.Params.GeekblogAuthor) .Params.authors }}
{{ with $description }}
Expand Down

0 comments on commit e182cbb

Please sign in to comment.