From f933372c55a21e9f2ba16c7cdf91407b9d9542a9 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 10 Oct 2020 19:34:13 +0530 Subject: [PATCH] terms: fix unreachable code in taxonomy list --- layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4a998d3c..d788753e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,7 +17,7 @@ {{- end}} {{ $paginator := .Paginate $pages }} - +{{ $term := .Data.Term}} {{- range $index, $page := $paginator.Pages }} {{- $class := "post-entry" }} @@ -27,7 +27,7 @@ {{- else}} {{- $class = "first-entry" }} {{- end }} -{{- else if .Data.Term }} +{{- else if $term }} {{- $class = "post-entry tag-entry" }} {{- end }}