From 3d689d9dcd7aa9e727e37c899e9bd41a30bb710a Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 12:19:52 +0800 Subject: remove(partial): no longer show unique section categories --- layouts/_partials/section-categories.html | 20 -------------------- layouts/article/section.html | 2 -- 2 files changed, 22 deletions(-) delete mode 100644 layouts/_partials/section-categories.html (limited to 'layouts') diff --git a/layouts/_partials/section-categories.html b/layouts/_partials/section-categories.html deleted file mode 100644 index 40e6600e..00000000 --- a/layouts/_partials/section-categories.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ $categories := slice }} -{{ range . }} - {{ with .Params.categories }} - {{ if not (in $categories .) }} - {{ $categories = $categories | append . }} - {{ end }} - {{ end }} -{{ end }} - -
- {{ range $categories }} - - {{ . }} - - {{ end }} -
diff --git a/layouts/article/section.html b/layouts/article/section.html index 5b5cb33a..b4ccd023 100644 --- a/layouts/article/section.html +++ b/layouts/article/section.html @@ -9,8 +9,6 @@
{{ .Content }}
- {{ partial "section-categories" $pages }} - {{ $remainingMonthsToOpen := 3 }} {{ range $pages.GroupByDate "2006" -}} -- cgit v1.2.3