Update archives.html

This commit is contained in:
小赵同学 committed 2024-09-19 23:15:58 +08:00
1 parent 1df2c1be63
commit 3d8d402dd2
1 file changed
+2 -1
+2 -1
View File
@@ -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") (ne .Params.status "hidden") }} -->
{{ if and (eq .Type "post") }}
{{ $year := .Date.Year }}
{{ $month := .Date.Month }}
{{ if ne $year $currentYear }}