diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 23:21:44 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 23:21:44 +0800 |
| commit | f22d6fad8f7158b8cbe3e2d89c283977edfdd49a (patch) | |
| tree | 036dd590589040cab6efead584fcf9d9e6c9156b /layouts/uncategorized.html | |
| parent | 0d97407ab88288de8219dbcae5ff4afde892cb39 (diff) | |
refactor: global search UnoCSS-ify, rename postnav to home-nav
Former-commit-id: 43ac3a5b42166e77373ae2495678ab5ac888ae37
Diffstat (limited to 'layouts/uncategorized.html')
| -rw-r--r-- | layouts/uncategorized.html | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/layouts/uncategorized.html b/layouts/uncategorized.html index b86e9b76..0eed855c 100644 --- a/layouts/uncategorized.html +++ b/layouts/uncategorized.html @@ -1,7 +1,7 @@ {{ define "main" }} <article class="posts termlist-page"> - {{ partial "header.html" . }} - {{ partial "components/postnav.html" . }} + {{ partial "header" . }} + {{ partial "home/home-nav" . }} <h1 class="term-title">{{ .Title }}</h1> <div class="post-content markdown-body"> <p>{{ .Content }}</p> @@ -9,21 +9,11 @@ <!-- Uncategorized --> {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }} {{ if $uncategorized }} - <section class="uncategorized-posts term-list"> - <ol class="term-list-posts"> - {{ range $uncategorized }} - <li> - <a href="{{ .RelPermalink }}" data-umami-event="🈚️ Click Post Link from Uncategorized"> - {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span> - {{ end }} - </a> - <time> - {{ .Date.Format "2006-1-2" }} - </time> - </li> - {{ end }} - </ol> - </section> + <ol class="ps-0 flex flex-col gap-2 leading-relaxed"> + {{ range $uncategorized }} + {{ partial "items/post-small" . }} + {{ end }} + </ol> {{ end }} </article> {{ partial "footer.html" . }} |
