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") }}