From be5321a9ac8d4038cdc2520677103838cd389944 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 18 Apr 2025 16:41:11 +0800 Subject: feat: add a page listing all uncategorized posts --- layouts/_default/uncategorized.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 layouts/_default/uncategorized.html (limited to 'layouts/_default/uncategorized.html') diff --git a/layouts/_default/uncategorized.html b/layouts/_default/uncategorized.html new file mode 100644 index 00000000..44dd79f5 --- /dev/null +++ b/layouts/_default/uncategorized.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+ {{ partial "components/post-page-header.html" . }} + {{ partial "components/breadcrumbs.html" . }} +
+ + {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }} + {{ if $uncategorized }} +
+
    + {{ range $uncategorized }} +
  1. {{ .Title }}
  2. + {{ end }} +
+
+ {{ end }} +
+
+{{ partial "footer.html" . }} +{{ end }} -- cgit v1.2.3 From a64c37591cbb17ff782d2acf69bc5b8bd90ab1f1 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 18 Apr 2025 16:48:02 +0800 Subject: style: adjust code indentation --- layouts/_default/uncategorized.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'layouts/_default/uncategorized.html') 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" }} -
- {{ partial "components/post-page-header.html" . }} - {{ partial "components/breadcrumbs.html" . }} -
- - {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }} - {{ if $uncategorized }} -
-
    - {{ range $uncategorized }} -
  1. {{ .Title }}
  2. +
    + {{ partial "components/post-page-header.html" . }} + {{ partial "components/breadcrumbs.html" . }} +
    + + {{ $uncategorized := where (where .Site.RegularPages "Section" "posts") "Params.categories" "==" nil }} + {{ if $uncategorized }} +
    +
      + {{ range $uncategorized }} +
    1. {{ .Title }}
    2. + {{ end }} +
    +
    {{ end }} -
-
- {{ end }} -
-
+ + {{ partial "footer.html" . }} {{ end }} -- cgit v1.2.3