summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2025-12-06 16:30:03 +0800
committerBigCoke233 <hi@guhub.cn>2025-12-06 16:30:03 +0800
commitf82e5e460aa14a9e75385b8e420a52a904ac76ff (patch)
tree75a4397a4ad7da324fa8acec583eea8f37a31d30
parent0718956d06964e483d23ff8d8b089198922191cd (diff)
fix: update uncategoriezed page list
- merge essays and posts - remove title Former-commit-id: f04b5ab3183a67677a25478a07ee040c22a6c5de
-rw-r--r--layouts/uncategorized.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/uncategorized.html b/layouts/uncategorized.html
index 2b67c387..a269a18a 100644
--- a/layouts/uncategorized.html
+++ b/layouts/uncategorized.html
@@ -2,12 +2,14 @@
<article>
{{ partial "header" . }}
{{ partial "home/home-nav" . }}
- <h1 class="term-title">{{ .Title }}</h1>
<div class="post-content markdown-body">
<p>{{ .Content }}</p>
</div>
<!-- Uncategorized -->
- {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }}
+ {{ $posts := .Site.GetPage "section" "posts" }}
+ {{ $essays := .Site.GetPage "section" "essays" }}
+ {{ $combined := $posts.Pages | append $essays.Pages }}
+ {{ $uncategorized := where $combined "Params.categories" "eq" nil }}
{{ if $uncategorized }}
<ol class="ps-0 flex flex-col gap-2 leading-relaxed">
{{ range $uncategorized }}