diff --git a/CHANGELOG.md b/CHANGELOG.md
index e4a18d7..ee5135a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,2 +1,2 @@
- ENHANCEMENT
- - generate android icons with transparent background
+ - move description and keyword variables
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index 679afbc..8da5e4c 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -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.
diff --git a/exampleSite/content/posts/how-to-use.md b/exampleSite/content/posts/how-to-use.md
index cef939a..481a765 100644
--- a/exampleSite/content/posts/how-to-use.md
+++ b/exampleSite/content/posts/how-to-use.md
@@ -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 >}}
diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html
index ff94e66..d28c8ca 100644
--- a/layouts/partials/head/meta.html
+++ b/layouts/partials/head/meta.html
@@ -1,7 +1,7 @@
-{{ $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 }}