From 09341c7caf3bc711598190fcc463313439cde917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B5=B5=E5=90=8C=E5=AD=A6?= <94612053+imzql@users.noreply.github.com> Date: Thu, 19 Sep 2024 23:15:58 +0800 Subject: [PATCH] Update archives.html --- themes/Ying/layouts/_default/archives.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/Ying/layouts/_default/archives.html b/themes/Ying/layouts/_default/archives.html index e8b45230..ad3d52ed 100644 --- a/themes/Ying/layouts/_default/archives.html +++ b/themes/Ying/layouts/_default/archives.html @@ -4,7 +4,8 @@ {{ $currentYear := 0 }} {{ $currentMonth := 0 }} {{ range .Site.RegularPages }} - {{ if and (eq .Type "post") (ne .Params.status "hidden") }} + + {{ if and (eq .Type "post") }} {{ $year := .Date.Year }} {{ $month := .Date.Month }} {{ if ne $year $currentYear }}