From c6609889f6b2d2c4e12a5c0e6d260b7f2c3bb132 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:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=AE=E9=A1=B6=E6=96=87?= =?UTF-8?q?=E7=AB=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Ying/layouts/_default/archives.html | 2 +- themes/Ying/layouts/_default/home.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/Ying/layouts/_default/archives.html b/themes/Ying/layouts/_default/archives.html index 9ca89fac..c2e07086 100644 --- a/themes/Ying/layouts/_default/archives.html +++ b/themes/Ying/layouts/_default/archives.html @@ -4,7 +4,6 @@ {{ $currentYear := 0 }} {{ $currentMonth := 0 }} {{ range .Site.RegularPages }} - {{ if eq .Type "post" }} {{ $year := .Date.Year }} {{ $month := .Date.Month }} @@ -27,6 +26,7 @@

随笔

- - {{ $posts := where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden" | sort "Weight" "asc" }} + + {{ $posts := sort (where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden") "Weight" }} {{ $paginator := .Paginate $posts }} {{ range $paginator.Pages }} @@ -26,7 +26,7 @@ {{ end }}
- +