mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-28 07:50:34 +00:00
Merge pull request #16 from thegeeklab/fix-content-section
Fix content section
This commit is contained in:
commit
10ae530e44
@ -1,5 +1,7 @@
|
|||||||
- ENHANCEMENT
|
- ENHANCEMENT
|
||||||
- add new icons for different vcs providers `bitbucket`, `gitlab`
|
- add new icons for different vcs providers `bitbucket`, `gitlab`
|
||||||
and generic `git`
|
and generic `git`
|
||||||
|
- add site parameter `GeekblogContentSection` to set a different name
|
||||||
|
for the default content section (defaults to `posts` or `post`)
|
||||||
- BUGFIX
|
- BUGFIX
|
||||||
- normalize source icon size for the icon font
|
- normalize source icon size for the icon font
|
||||||
|
@ -246,6 +246,9 @@ enableGitInfo = true
|
|||||||
# (Optional, default none) Sites main author.
|
# (Optional, default none) Sites main author.
|
||||||
geekblogAuthor = "john-doe"
|
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.
|
# (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.
|
# Could be used if you want to give credits to your hosting provider.
|
||||||
[params.geekblogHostedOn]
|
[params.geekblogHostedOn]
|
||||||
@ -354,6 +357,9 @@ params:
|
|||||||
# (Optional, default none) Sites main author.
|
# (Optional, default none) Sites main author.
|
||||||
geekblogAuthor: john-doe
|
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.
|
# (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.
|
# Could be used if you want to give credits to your hosting provider.
|
||||||
geekblogHostedOn:
|
geekblogHostedOn:
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<h1>{{ partial "title" . }}</h1>
|
<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">
|
<div class="gblog-post__meta">
|
||||||
<span class="no-wrap">
|
<span class="no-wrap">
|
||||||
<svg class="icon date"><use xlink:href="#date"></use></svg>
|
<svg class="icon date"><use xlink:href="#date"></use></svg>
|
||||||
|
Loading…
Reference in New Issue
Block a user