summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
authoryingyu5658 <i@yingyu5658.me>2025-12-29 21:20:34 +0800
committeryingyu5658 <i@yingyu5658.me>2025-12-29 21:20:34 +0800
commit43b4395e10e0c8e032077cf44ea570fd382faef5 (patch)
treecab63690c80a9eb876699f02e55fb70146446793 /layouts/partials
parent666022b097de6b18b5432b9fb59fd3aa39afe5e8 (diff)
downloadblog-43b4395e10e0c8e032077cf44ea570fd382faef5.tar.gz
blog-43b4395e10e0c8e032077cf44ea570fd382faef5.zip
chore: Delete some redundancy file
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/archives-list.html30
1 files changed, 0 insertions, 30 deletions
diff --git a/layouts/partials/archives-list.html b/layouts/partials/archives-list.html
deleted file mode 100644
index b9767f7..0000000
--- a/layouts/partials/archives-list.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{{ $allPages := where .Site.RegularPages "Type" "in" (slice "posts" "blog") }}
-{{ $visiblePages := where $allPages "Params.hidden" "!=" true }}
-{{ $pagesToShow := $visiblePages.ByDate.Reverse }}
-
-<div class="archives-content">
- <h2>归档</h2>
-
- <p>共有 {{ len $pagesToShow }} 篇文章</p>
-
- <ul class="blog-posts">
- {{ $currentYear := 0 }}
- {{ range $pagesToShow }}
- {{ $year := .Date.Year }}
- {{ if ne $year $currentYear }}
- <h3>{{ $year }}</h3>
- {{ $currentYear = $year }}
- {{ end }}
- <li>
- <span>
- <i>
- <time datetime='{{ .Date.Format "2006-01-02" }}'>
- {{ .Date.Format "2006-01-02" }}
- </time>
- </i>
- </span>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- </li>
- {{ end }}
- </ul>
-</div>