From 543da29605064d5f6ea67a25e08f0142bd1704af Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 9 Jul 2020 16:54:41 +0200 Subject: [PATCH] [skip ci] fix counter --- layouts/partials/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/list.html b/layouts/partials/list.html index 188c013..42cdef6 100644 --- a/layouts/partials/list.html +++ b/layouts/partials/list.html @@ -36,7 +36,7 @@ {{ template "post-author" dict "name" $author.name "page" . }} {{ end }} {{ end }} - {{ add $ac 1 }} + {{ $ac = (add $ac 1) }} {{ end }} {{ end }} @@ -54,7 +54,7 @@ {{ template "post-tag" dict "name" $name "page" . }} {{ end }} {{ end }} - {{ add $tc 1 }} + {{ $tc = (add $tc 1) }} {{ end }} {{ end }}