summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-18 16:48:02 +0800
committerEltrac <hi@guhub.cn>2025-04-18 16:48:02 +0800
commit8b5d63509318406fce7ef35b57f60cb81cd3b99d (patch)
tree5e902d0017ea4e6b38c1b7e37c6ad995175d5a01
parent04639060045472446582c93b9e0fffea745c3cf8 (diff)
style: adjust code indentation
Former-commit-id: a64c37591cbb17ff782d2acf69bc5b8bd90ab1f1
-rw-r--r--layouts/_default/term.html46
-rw-r--r--layouts/_default/uncategorized.html32
2 files changed, 39 insertions, 39 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index 7aac0646..43e86953 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,29 +1,29 @@
{{ define "main" }}
<article class="posts termlist-page">
- {{ partial "components/post-page-header.html" . }}
- {{ partial "components/breadcrumbs.html" . }}
+ {{ partial "components/post-page-header.html" . }}
+ {{ partial "components/breadcrumbs.html" . }}
- {{ with .Params.description }}
- <div class="taxonomy-description markdown-body">
- {{ . | markdownify }}
- <hr />
- </div>
- {{ end }}
+ {{ with .Params.description }}
+ <div class="taxonomy-description markdown-body">
+ {{ . | markdownify }}
+ <hr />
+ </div>
+ {{ end }}
- <div class="term-list">
- <ul>
- {{ range .Pages }}
- <li>
- <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page">
- {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span>
- {{ end }}
- </a>
- <time>
- {{ .Date.Format "2006-1-2" }}
- </time>
- </li>
- {{ end }}
- </ul>
- </div>
+ <div class="term-list">
+ <ul>
+ {{ range .Pages }}
+ <li>
+ <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page">
+ {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span>
+ {{ end }}
+ </a>
+ <time>
+ {{ .Date.Format "2006-1-2" }}
+ </time>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
</article>
{{ end }}
diff --git a/layouts/_default/uncategorized.html b/layouts/_default/uncategorized.html
index 44dd79f5..1f777025 100644
--- a/layouts/_default/uncategorized.html
+++ b/layouts/_default/uncategorized.html
@@ -1,20 +1,20 @@
{{ define "main" }}
-<article class="taxonomy">
- {{ 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>
+ <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 }}
- </ol>
- </section>
- {{ end }}
- </div>
-</article>
+ </div>
+ </article>
{{ partial "footer.html" . }}
{{ end }}