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}}
{{ $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 }}
<article class="{{ $class }}">