diff options
| author | eltrac <hi@eltr.ac> | 2026-03-08 12:19:52 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-08 12:19:52 +0800 |
| commit | 3d689d9dcd7aa9e727e37c899e9bd41a30bb710a (patch) | |
| tree | f2560a6ec78715dc6661e8600c04c925ea83fe31 /layouts | |
| parent | f8bceee60220ee6e74c56328255c491372158147 (diff) | |
remove(partial): no longer show unique section categories
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_partials/section-categories.html | 20 | ||||
| -rw-r--r-- | layouts/article/section.html | 2 |
2 files changed, 0 insertions, 22 deletions
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 }} - -<div class="flex gap-2 flex-wrap"> - {{ range $categories }} - <a href="/categories/{{ . | urlize }}/" - class="text-size-lg px-3 py-2 - transition-colors duration-300 rounded-xl hover:no-underline - bg-slate-2/50 dark:bg-neutral-800/50 - hover:bg-[var(--text-color)] hover:text-[var(--block-background-color)]"> - {{ . }} - </a> - {{ end }} -</div> 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 @@ <div class="posts-list pagefind-exclude"> <div class="markdown-body">{{ .Content }}</div> - {{ partial "section-categories" $pages }} - <!-- Post Archive List --> {{ $remainingMonthsToOpen := 3 }} {{ range $pages.GroupByDate "2006" -}} |
