mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-24 22:59:21 -05:00
terms: fix unreachable code in taxonomy list
This commit is contained in:
parent
46bf0538c9
commit
f933372c55
@ -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 }}">
|
||||||
|
Loading…
Reference in New Issue
Block a user