From 9c861cb77f865d086dacea965907addf1dbf3363 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 14 Sep 2020 22:50:04 +0530 Subject: [PATCH] Special-1st-Post: allow disabling the special highlight of 1st Post * usage => in site config params: disableSpecial1stPost : true --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ae8c367f..c0016be1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -23,7 +23,7 @@ {{- $class := "post-entry" }} {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }} -{{- if .Site.Params.homeInfoParams }} +{{- if .Site.Params.homeInfoParams | or .Site.Params.disableSpecial1stPost}} {{- partial "homeInfo.html" . }} {{else}} {{- $class = "first-entry" }}