From 082d960e13edf31c7d614cc179adce7046fb4862 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 19 Sep 2020 17:29:05 +0530 Subject: [PATCH] Revert "home-info: handle case where home-info was hidden" This reverts commit ce408f6afc0c7ae083ffa48c86b8ce8147c2dda1. * incomplete --- layouts/_default/list.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 009d0749..c0016be1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,14 +10,11 @@ {{ end }} + {{ $pages := .RegularPages }} {{ if .IsHome }} {{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} - -{{- if .Site.Params.homeInfoParams }} -{{- partial "homeInfo.html" . }} -{{- end }} {{end}} {{ $paginator := .Paginate $pages }} @@ -26,9 +23,11 @@ {{- $class := "post-entry" }} {{- 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" }} -{{- end }} +{{ end }} {{- else if .Data.Term }} {{- $class = "post-entry tag-entry" }} {{- end }}