mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 09:12:47 +00:00
Replace .Site.Params.recent_posts_number with $.Param "recent_posts_number" in index.html
This commit is contained in:
parent
e2b9dae224
commit
e4fde9e87d
@ -20,7 +20,7 @@
|
||||
</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ $n_posts := .Site.Params.recent_posts_number | default 3 }}
|
||||
{{ $n_posts := $.Param "recent_posts_number" | default 3 }}
|
||||
|
||||
<section class="w-100 mw8">
|
||||
{{/* Range through the first $n_posts items of the section */}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user