diff options
Diffstat (limited to 'themes/PaperMod/layouts/_default/list.html')
| -rw-r--r-- | themes/PaperMod/layouts/_default/list.html | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/themes/PaperMod/layouts/_default/list.html b/themes/PaperMod/layouts/_default/list.html index 81aea6e..e0d0d40 100644 --- a/themes/PaperMod/layouts/_default/list.html +++ b/themes/PaperMod/layouts/_default/list.html @@ -30,14 +30,6 @@ </header> {{- end }} -{{- if .Content }} -<div class="post-content"> - {{- if not (.Param "disableAnchoredHeadings") }} - {{- partial "anchored_headings.html" .Content -}} - {{- else }}{{ .Content }}{{ end }} -</div> -{{- end }} - {{- $pages := union .RegularPages .Sections }} {{- if .IsHome }} @@ -47,21 +39,22 @@ {{- $paginator := .Paginate $pages }} -{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} +{{- if and .IsHome (eq $paginator.PageNumber 1) }} {{- partial "home_info.html" . }} {{- end }} +{{- if and (not .IsHome) .Content }} +<div class="post-content"> + {{- if not (.Param "disableAnchoredHeadings") }} + {{- partial "anchored_headings.html" .Content -}} + {{- else }}{{ .Content }}{{ end }} +</div> +{{- end }} + {{- $term := .Data.Term }} {{- range $index, $page := $paginator.Pages }} -{{- $class := "post-entry" }} - -{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} -{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} -{{- $class = "first-entry" }} -{{- else if $term }} -{{- $class = "post-entry tag-entry" }} -{{- end }} +{{- $class := "post-entry tag-entry" }} <article class="{{ $class }}"> {{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }} |
