rename keyword and description variables

This commit is contained in:
Robert Kaussow 2020-07-24 14:36:07 +02:00
parent aee4db0afc
commit 247a1f7263
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
4 changed files with 14 additions and 23 deletions

View File

@ -1,2 +1,2 @@
- ENHANCEMENT
- generate android icons with transparent background
- move description and keyword variables

View File

@ -56,6 +56,9 @@ enableRobotsTXT: true
params:
images:
- "favicon/android-chrome-512x512.png"
description: >
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.
geekblogSubtitle: Subtitle to describe your blog
geekblogToC: 3
@ -65,7 +68,3 @@ 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.

View File

@ -88,6 +88,10 @@ enableGitInfo = true
term = ["HTML", "ATOM"]
[params]
description = "This is my personal blog about tech."
keywords = []
images = []
# (Optional, default 6) Set how many table of contents levels to be showed on page.
# Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/)
# You can also specify this parameter per page in front matter.
@ -128,14 +132,6 @@ enableGitInfo = true
[geekblogContentLicense]
name = "CC BY-SA 4.0"
link = "https://creativecommons.org/licenses/by-sa/4.0/"
# (Optional, default none) Default meta description used for the start page and as a fallback for
# every site without an own description.
geekblogDescription = "This is my personal blog about tech."
# (Optional, default none) Default meta keywords used for the start page and as a fallback for
# every site without own keywords. Note: Meta keywords seems to be ignored by most modern search engines.
geekblogKeywords =
```
{{< /tab >}}
@ -202,6 +198,10 @@ outputs:
enableRobotsTXT: true
params:
description: "This is my personal blog about tech."
keywords: []
images: []
# (Optional, default 6) Set how many table of contents levels to be showed on page.
# Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/)
# You can also specify this parameter per page in front matter.
@ -242,14 +242,6 @@ params:
geekblogContentLicense:
name: CC BY-SA 4.0
link: https://creativecommons.org/licenses/by-sa/4.0/
# (Optional, default none) Default meta description used for the start page and as a fallback for
# every site without an own description.
geekblogDescription: "This is my personal blog about tech."
# (Optional, default none) Default meta keywords used for the start page and as a fallback for
# every site without own keywords. Note: Meta keywords seems to be ignored by most modern search engines.
geekblogKeywords: []
```
{{< /tab >}}

View File

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