diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-25 23:06:54 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-25 23:06:54 +0800 |
| commit | 9ff8c08731833841b81671df0d7ceae008a4b5ef (patch) | |
| tree | d85aa3298d7dda5427423a167afe564ed578b985 /layouts/_default/uncategorized.html | |
| parent | 19d0e7d6c8c42c78070606b3faf69e5158295b56 (diff) | |
chore: rename 分类 to 专栏 and style uncategorized list
Diffstat (limited to 'layouts/_default/uncategorized.html')
| -rw-r--r-- | layouts/_default/uncategorized.html | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/layouts/_default/uncategorized.html b/layouts/_default/uncategorized.html index 1f777025..afec928a 100644 --- a/layouts/_default/uncategorized.html +++ b/layouts/_default/uncategorized.html @@ -2,19 +2,28 @@ <article class="posts termlist-page"> {{ partial "components/post-page-header.html" . }} {{ partial "components/breadcrumbs.html" . }} - <div class="post-content"> - <!-- Uncategorized --> - {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }} - {{ if $uncategorized }} - <section class="uncategorized-posts"> - <ol> - {{ range $uncategorized }} - <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> - {{ end }} - </ol> - </section> - {{ end }} + <div class="post-content markdown-body"> + <p>{{ .Content }}</p> </div> + <!-- 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> + {{ end }} </article> {{ partial "footer.html" . }} {{ end }} |
