summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-09 09:14:23 +0800
committerEltrac <hi@guhub.cn>2025-05-09 09:14:23 +0800
commitba64ff3fe7e8429e47d158a60a2160773a687906 (patch)
treed79ecc31d94a18381bbca3744ab9280f6cf20bfa
parent4c902030ad76736637594d3a63c076da3a103dd3 (diff)
refactor: move article series display to taxonomy page
Former-commit-id: d7fd4969ef4b583cf7a6f31d66ed98555b91760d
-rw-r--r--layouts/categories/taxonomy.html23
-rw-r--r--layouts/partials/components/welcome.html22
2 files changed, 22 insertions, 23 deletions
diff --git a/layouts/categories/taxonomy.html b/layouts/categories/taxonomy.html
index 5b6748d0..22c99a6d 100644
--- a/layouts/categories/taxonomy.html
+++ b/layouts/categories/taxonomy.html
@@ -3,8 +3,29 @@
{{ partial "header.html" . }}
{{ partial "components/postnav.html" . }}
+ <!-- Series With Banners -->
+ {{ if eq .Site.Language.Lang "zh" }}
+ <div id="post-series">
+ <div id="post-series-list">
+ {{ range .Site.Params.series }}
+ <a class="post-series-item"
+ href="{{ .link }}"
+ title="{{ .description }}"
+ data-umami-event="Click series link from Banner"
+ >
+ <div class="post-series-cover">
+ <img src="{{ .cover }}" />
+ </div>
+ <div class="post-series-text">
+ <h3>{{ .name }}</h3>
+ </div>
+ </a>
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}
+
<!-- Display Categories -->
- {{ partial "components/welcome.html" . }}
{{ $featured := slice "稻草人周刊" "年终总结" "揽物日志" "极客死亡计划书" }}
<h2>周期性刊物</h2>
<section class="taxonomy-categories">
diff --git a/layouts/partials/components/welcome.html b/layouts/partials/components/welcome.html
deleted file mode 100644
index f8d6bfa0..00000000
--- a/layouts/partials/components/welcome.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{{ if eq .Site.Language.Lang "zh" }}
-<header id="posts-header">
- <div id="post-series">
- <div id="post-series-list">
- {{ range .Site.Params.series }}
- <a class="post-series-item"
- href="{{ .link }}"
- title="{{ .description }}"
- data-umami-event="Click series link from Banner"
- >
- <div class="post-series-cover">
- <img src="{{ .cover }}" />
- </div>
- <div class="post-series-text">
- <h3>{{ .name }}</h3>
- </div>
- </a>
- {{ end }}
- </div>
- </div>
-</header>
-{{ end }}