From e4fde9e87d73f0b2fa8fa680f6e924eaddfeae33 Mon Sep 17 00:00:00 2001 From: Developer Davo Date: Wed, 1 Nov 2017 16:07:26 +0100 Subject: [PATCH] Replace .Site.Params.recent_posts_number with $.Param "recent_posts_number" in index.html --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 796cbe3..3480c04 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -20,7 +20,7 @@ {{ end }} - {{ $n_posts := .Site.Params.recent_posts_number | default 3 }} + {{ $n_posts := $.Param "recent_posts_number" | default 3 }}
{{/* Range through the first $n_posts items of the section */}}