diff --git a/CHANGELOG.md b/CHANGELOG.md index ee5135a..96887a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,6 @@ +- BREAKING + - rename description and keyword variables + - rename logo variable + - rename subtitle variable - ENHANCEMENT - - move description and keyword variables + - add partial for json-ld structured data diff --git a/exampleSite/config.yml b/exampleSite/config.yml index 8da5e4c..071e5ca 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -54,13 +54,13 @@ outputs: enableRobotsTXT: true params: - images: - - "favicon/android-chrome-512x512.png" + subtitle: Subtitle to describe your blog 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. + images: + - "favicon/android-chrome-512x512.png" - geekblogSubtitle: Subtitle to describe your blog geekblogToC: 3 geekblogAuthor: john-doe diff --git a/exampleSite/content/posts/how-to-use.md b/exampleSite/content/posts/how-to-use.md index 481a765..9a42809 100644 --- a/exampleSite/content/posts/how-to-use.md +++ b/exampleSite/content/posts/how-to-use.md @@ -88,19 +88,20 @@ enableGitInfo = true term = ["HTML", "ATOM"] [params] + subtitle = description = "This is my personal blog about tech." keywords = [] images = [] + # (Optional, default static/brand.svg) Set the path to a logo for the Geekblog + # relative to your 'static/' folder. + logo = logo.png + # (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. geekblogToC = 3 - # (Optional, default static/brand.svg) Set the path to a logo for the Geekblog - # relative to your 'static/' folder. - geekblogLogo = logo.png - # (Optional, default none) Add a link to your Legal Notice page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekblogLegalNotice = "https://blog.example.com/legal" @@ -198,19 +199,20 @@ outputs: enableRobotsTXT: true params: + subtitle: description: "This is my personal blog about tech." keywords: [] images: [] + # (Optional, default static/brand.svg) Set the path to a logo for the Geekblog + # relative to your 'static/' folder. + logo: logo.png + # (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. geekblogToC: 3 - # (Optional, default static/brand.svg) Set the path to a logo for the Geekblog - # relative to your 'static/' folder. - geekblogLogo: logo.png - # (Optional, default none) Add a link to your Legal Notice page to the site footer. # It can be either a remote url or a local file path relative to your content directory. geekblogLegalNotice: https://blog.example.com/legal diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2fe8a7b..575f450 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,6 +9,7 @@ {{ partial "head/rel-me" . }} {{ partial "head/microformats" . }} {{ partial "head/others" . }} + {{ partial "head/schema.html" . }}
diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index 98d95b8..bd97f27 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -8,7 +8,7 @@ {{- end -}} {{- end -}} {{ printf `