diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-18 16:48:02 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-18 16:48:02 +0800 |
| commit | a64c37591cbb17ff782d2acf69bc5b8bd90ab1f1 (patch) | |
| tree | 7ed2a76967c9c349b05acb7112f842b05e98b4cd /layouts | |
| parent | ae958358504c96046bdaea0c61e7f6ec0a5b0303 (diff) | |
style: adjust code indentation
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/term.html | 46 | ||||
| -rw-r--r-- | layouts/_default/uncategorized.html | 32 |
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 }} |
