diff options
| author | BigCoke233 <hi@guhub.cn> | 2025-12-06 16:30:03 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2025-12-06 16:30:03 +0800 |
| commit | f04b5ab3183a67677a25478a07ee040c22a6c5de (patch) | |
| tree | 60167872927efb41de653ff28d971c535bc8343e /layouts | |
| parent | 74db705c0369e377d5698c4cc46109411c63d396 (diff) | |
fix: update uncategoriezed page list
- merge essays and posts
- remove title
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/uncategorized.html | 6 |
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 }} |
