From 0d5e2d839f21600a160fa1adc2795f5faef53764 Mon Sep 17 00:00:00 2001 From: vimux Date: Sun, 27 May 2018 09:58:52 +0300 Subject: [PATCH] Use .Param for cardsPerRow parameter --- layouts/_default/list.html | 2 +- layouts/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c0c758d..6224997 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,7 +8,7 @@ {{ end }}
{{ range .Paginator.Pages }} -
+
{{ .Render "summary" }}
{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 3eb665b..1c9e774 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ $mainSections := .Site.Params.mainSections | default (slice "post") }} {{ $paginator := .Paginate ( where .Data.Pages "Section" "in" $mainSections ) }} {{ range $paginator.Pages }} -
+
{{ .Render "summary" }}
{{ end }}