mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-23 01:21:04 +01:00
fix: make homeInfo available only on home
and not all pages
This commit is contained in:
parent
8356e48e47
commit
523098f87e
@ -8,15 +8,15 @@
|
||||
{{ end }}
|
||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||
|
||||
{{- if (and $.IsHome (eq $.Site.Params.homeInfoParams.enabled true)) }}
|
||||
{{- partial "homeInfo.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{- range $index, $page := $paginator.Pages }}
|
||||
|
||||
{{- $class := "post-entry" }}
|
||||
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (ne $.Site.Params.homeInfoParams.enabled true)) }}
|
||||
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
|
||||
{{- if (eq $.Site.Params.homeInfoParams.enabled true) }}
|
||||
{{- partial "homeInfo.html" . }}
|
||||
{{else}}
|
||||
{{- $class = "first-entry" }}
|
||||
{{ end }}
|
||||
{{- else if .Data.Term }}
|
||||
{{- $class = "post-entry tag-entry" }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user