diff --git a/CHANGELOG.md b/CHANGELOG.md index d39fe6b..b434d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ - ENHANCEMENT - add new icons for different vcs providers `bitbucket`, `gitlab` and generic `git` + - add site parameter `GeekblogContentSection` to set a different name + for the default content section (defaults to `posts` or `post`) - BUGFIX - normalize source icon size for the icon font diff --git a/exampleSite/content/posts/getting-started.md b/exampleSite/content/posts/getting-started.md index 448a7b5..918c103 100644 --- a/exampleSite/content/posts/getting-started.md +++ b/exampleSite/content/posts/getting-started.md @@ -246,6 +246,9 @@ enableGitInfo = true # (Optional, default none) Sites main author. geekblogAuthor = "john-doe" + # (Optional, default posts) Set the name of the default content section. + geekblogContentSection = "my-pages" + # (Optional, default none) Adds a "Hosted on " line to the footer. # Could be used if you want to give credits to your hosting provider. [params.geekblogHostedOn] @@ -354,6 +357,9 @@ params: # (Optional, default none) Sites main author. geekblogAuthor: john-doe + # (Optional, default posts) Set the name of the default content section. + geekblogContentSection: "my-pages" + # (Optional, default none) Adds a "Hosted on " line to the footer. # Could be used if you want to give credits to your hosting provider. geekblogHostedOn: diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e8ab622..3b68666 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,7 +16,7 @@ {{ end }}

{{ partial "title" . }}

- {{ if eq .Type "posts" }} + {{ if or (eq .Type (default "posts" .Site.Params.GeekblogContentSection)) (eq .Type "post") }}