mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-17 19:44:37 -05:00
Revert "home-info: handle case where home-info was hidden"
This reverts commit ce408f6afc
.
* incomplete
This commit is contained in:
parent
7204003afd
commit
082d960e13
@ -10,14 +10,11 @@
|
|||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ $pages := .RegularPages }}
|
{{ $pages := .RegularPages }}
|
||||||
|
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
|
|
||||||
{{- if .Site.Params.homeInfoParams }}
|
|
||||||
{{- partial "homeInfo.html" . }}
|
|
||||||
{{- end }}
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ $paginator := .Paginate $pages }}
|
{{ $paginator := .Paginate $pages }}
|
||||||
@ -26,9 +23,11 @@
|
|||||||
|
|
||||||
{{- $class := "post-entry" }}
|
{{- $class := "post-entry" }}
|
||||||
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
|
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
|
||||||
{{- if not .Site.Params.homeInfoParams | or .Site.Params.disableSpecial1stPost}}
|
{{- if .Site.Params.homeInfoParams | or .Site.Params.disableSpecial1stPost}}
|
||||||
|
{{- partial "homeInfo.html" . }}
|
||||||
|
{{else}}
|
||||||
{{- $class = "first-entry" }}
|
{{- $class = "first-entry" }}
|
||||||
{{- end }}
|
{{ end }}
|
||||||
{{- else if .Data.Term }}
|
{{- else if .Data.Term }}
|
||||||
{{- $class = "post-entry tag-entry" }}
|
{{- $class = "post-entry tag-entry" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user