diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 12:43:22 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 12:43:22 +0200 |
| commit | 5b476f8905f411768e23cb01d577a60e5a5fd725 (patch) | |
| tree | 0a08cc83d809dbea714f52826e822501ee7c0165 /themes/danix-xyz-hacker/layouts/taxonomy | |
| parent | 082e9246ffe453031894d32d3cee9d5d1bf2b67a (diff) | |
| download | danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.tar.gz danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.zip | |
chore: extract theme into git submodule (danix2-hugo-theme)
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/taxonomy')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/taxonomy/list.html | 49 | ||||
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/taxonomy/term.html | 46 |
2 files changed, 0 insertions, 95 deletions
diff --git a/themes/danix-xyz-hacker/layouts/taxonomy/list.html b/themes/danix-xyz-hacker/layouts/taxonomy/list.html deleted file mode 100644 index c3a4317..0000000 --- a/themes/danix-xyz-hacker/layouts/taxonomy/list.html +++ /dev/null @@ -1,49 +0,0 @@ -{{ define "main" }} -<div class="mx-auto px-4 py-12 max-w-4xl"> - <!-- Page title with taxonomy name --> - <h1 class="text-4xl md:text-5xl font-bold text-accent mb-12"> - {{ i18n .Data.Plural }} - </h1> - - <!-- Articles list --> - <div class="space-y-6 max-w-3xl"> - {{ $pinned := where .Pages "Params.pinned" true }} - {{ $unpinned := where .Pages "Params.pinned" false }} - - <!-- If no unpinned posts found (because param is undefined), get all non-pinned pages --> - {{ if eq (len $unpinned) 0 }} - {{ $unpinned = where .Pages "Params.pinned" nil }} - {{ if eq (len $unpinned) 0 }} - {{ $unpinned = where .Pages "Params.pinned" "" }} - {{ end }} - {{ end }} - - <!-- Pinned posts first --> - {{ range (sort $pinned "Date" "desc") }} - <div class="relative"> - {{ partial "article-card.html" . }} - <span class="absolute top-4 right-4 px-2 py-0.5 rounded text-xs font-mono bg-surface text-text-dim border border-border/30"> - {{ i18n "postCount" .Pages.Len }} - </span> - </div> - {{ end }} - - <!-- Regular posts --> - {{ range (sort $unpinned "Date" "desc") }} - <div class="relative"> - {{ partial "article-card.html" . }} - <span class="absolute top-4 right-4 px-2 py-0.5 rounded text-xs font-mono bg-surface text-text-dim border border-border/30"> - {{ i18n "postCount" .Pages.Len }} - </span> - </div> - {{ end }} - - <!-- Empty state --> - {{ if eq (len .Pages) 0 }} - <div class="py-12 text-center text-text-dim"> - {{ i18n "noRelated" }} - </div> - {{ end }} - </div> -</div> -{{ end }} diff --git a/themes/danix-xyz-hacker/layouts/taxonomy/term.html b/themes/danix-xyz-hacker/layouts/taxonomy/term.html deleted file mode 100644 index 1b953bc..0000000 --- a/themes/danix-xyz-hacker/layouts/taxonomy/term.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ define "main" }} -<div class="mx-auto px-4 py-12 max-w-4xl"> - <!-- Page title with taxonomy type --> - <h1 class="text-4xl md:text-5xl font-bold text-accent mb-2"> - {{ i18n .Data.Singular }} - </h1> - - <!-- Current term heading --> - <p class="text-lg text-text-dim mb-12"> - <span class="inline-flex items-center px-3 py-1 rounded text-sm font-medium border border-accent/30 text-accent"> - {{ .Title }} - </span> - </p> - - <!-- Articles list --> - <div class="space-y-6 max-w-3xl"> - {{ $pinned := where .Pages "Params.pinned" true }} - {{ $unpinned := where .Pages "Params.pinned" false }} - - <!-- If no unpinned posts found (because param is undefined), get all non-pinned pages --> - {{ if eq (len $unpinned) 0 }} - {{ $unpinned = where .Pages "Params.pinned" nil }} - {{ if eq (len $unpinned) 0 }} - {{ $unpinned = where .Pages "Params.pinned" "" }} - {{ end }} - {{ end }} - - <!-- Pinned posts first --> - {{ range (sort $pinned "Date" "desc") }} - {{ partial "article-card.html" . }} - {{ end }} - - <!-- Regular posts --> - {{ range (sort $unpinned "Date" "desc") }} - {{ partial "article-card.html" . }} - {{ end }} - - <!-- Empty state --> - {{ if eq (len .Pages) 0 }} - <div class="py-12 text-center text-text-dim"> - {{ i18n "noRelated" }} - </div> - {{ end }} - </div> -</div> -{{ end }} |
