mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
incorprate suggestions of @davidsneighbour
This commit is contained in:
parent
3c5b4ead0d
commit
879c88f555
@ -1,3 +1,6 @@
|
|||||||
|
[ananke]
|
||||||
|
show_recent_posts = true # show recent posts on the homepage
|
||||||
|
|
||||||
[ananke.social]
|
[ananke.social]
|
||||||
icon_path = "ananke/socials/%s.svg"
|
icon_path = "ananke/socials/%s.svg"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
</article>
|
</article>
|
||||||
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}}
|
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}}
|
||||||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
||||||
{{ $show_recent_posts := .Site.Params.show_recent_posts | default (true) }}
|
{{ $show_recent_posts := site.Params.ananke.show_recent_posts }}
|
||||||
|
|
||||||
{{/* Check to see if the section is defined for ranging through it */}}
|
{{/* Check to see if the section is defined for ranging through it */}}
|
||||||
{{range ($mainSections)}}
|
{{range ($mainSections)}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user