terms: fix unreachable code in taxonomy list

This commit is contained in:
Aditya Telange 2020-10-10 19:34:13 +05:30
parent 46bf0538c9
commit f933372c55
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -17,7 +17,7 @@
{{- end}} {{- end}}
{{ $paginator := .Paginate $pages }} {{ $paginator := .Paginate $pages }}
{{ $term := .Data.Term}}
{{- range $index, $page := $paginator.Pages }} {{- range $index, $page := $paginator.Pages }}
{{- $class := "post-entry" }} {{- $class := "post-entry" }}
@ -27,7 +27,7 @@
{{- else}} {{- else}}
{{- $class = "first-entry" }} {{- $class = "first-entry" }}
{{- end }} {{- end }}
{{- else if .Data.Term }} {{- else if $term }}
{{- $class = "post-entry tag-entry" }} {{- $class = "post-entry tag-entry" }}
{{- end }} {{- end }}
<article class="{{ $class }}"> <article class="{{ $class }}">