From e5624bcce78d6a505d0711b2f7ce34979f33f9ad Mon Sep 17 00:00:00 2001 From: Kodai Okawa Date: Mon, 27 Feb 2023 13:44:30 +0900 Subject: [PATCH] [mod] sidebar.html: change banner setting --- layouts/partials/sidebar.html | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 1eed8c6..3279d60 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -38,33 +38,6 @@ {{ end }} {{ end }} - - {{ with $.Site.GetPage $dir }} - {{ range first $maxnum .Pages.ByDate.Reverse }} - {{$StatBanner := and (eq .Params.mkbanner true) (le now .Params.bannerEndDate) }} - {{ if ne $StatBanner true }} - {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} - {{ if le ($.Scratch.Get "counter") $maxnum }} - {{ if .Params.bannerimg }} -
- -
- {{ else if .Params.image }} -
-

{{ .Title }}


-
Posted on {{dateFormat "2 Jan, 2006" .Params.date }}
-
- - {{ else }} -
-

{{ .Title }}


-
Posted on {{dateFormat "2 Jan, 2006" .Params.date }}
-
- {{ end }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} -- GitLab