add parameter GeekblogContentSection

This commit is contained in:
Robert Kaussow 2020-11-28 16:50:56 +01:00
parent 99ab683d5d
commit 01644b9495
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 7 additions and 3 deletions

View File

@ -4,8 +4,6 @@
.drone*
.lighthouse*
.markdownlint*
.jsbeautify*
.prettier*
example*
gulp*
package*

View File

@ -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 <provider>" 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 <provider>" line to the footer.
# Could be used if you want to give credits to your hosting provider.
geekblogHostedOn:

View File

@ -16,7 +16,7 @@
{{ end }}
<h1>{{ partial "title" . }}</h1>
{{ if eq .Type "posts" }}
{{ if or (eq .Type (default "posts" .Site.Params.GeekblogContentSection)) (eq .Type "post") }}
<div class="gblog-post__meta">
<span class="no-wrap">
<svg class="icon date"><use xlink:href="#date"></use></svg>