Replace .Site.Params.recent_posts_number with $.Param "recent_posts_number" in index.html

This commit is contained in:
Developer Davo 2017-11-01 16:07:26 +01:00
parent e2b9dae224
commit e4fde9e87d

View File

@ -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 */}}