From 8a08cce99b2882900d7c7811b7c168a93e593fc4 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 28 Nov 2020 16:48:46 +0100 Subject: [PATCH 1/3] cleanup release tarballs --- .tarignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.tarignore b/.tarignore index 2c79ca3..c6a505e 100644 --- a/.tarignore +++ b/.tarignore @@ -4,6 +4,8 @@ .drone* .lighthouse* .markdownlint* +.jsbeautify* +.prettier* example* gulp* package* From 99ab683d5db50b4d48fed42d6b3d34846bd0f480 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 28 Nov 2020 16:49:28 +0100 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) 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 From 01644b94955f244f5a078d637eef7aaba71434a5 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 28 Nov 2020 16:50:56 +0100 Subject: [PATCH 3/3] add parameter GeekblogContentSection --- .tarignore | 2 -- exampleSite/content/posts/getting-started.md | 6 ++++++ layouts/_default/single.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.tarignore b/.tarignore index c6a505e..2c79ca3 100644 --- a/.tarignore +++ b/.tarignore @@ -4,8 +4,6 @@ .drone* .lighthouse* .markdownlint* -.jsbeautify* -.prettier* example* gulp* package* 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") }}