name = "legal"
weight = 4
+# Taxonomies
+[taxonomies]
+ tag = "tags"
+ category = "categories"
+
# Theme parameters
[params]
siteName = "danix.xyz"
--- /dev/null
+{{- $source := .Get "source" -}}
+{{- $src := .Get "src" -}}
+
+<blockquote class="my-8 pl-6 border-l-4 border-accent/50 italic text-text-dim">
+ <p class="text-lg">{{ .Inner }}</p>
+ {{- if $source -}}
+ <footer class="mt-4 text-sm not-italic text-text-dim">
+ {{- if $src -}}
+ — <a href="{{ $src }}" class="text-accent hover:underline">{{ $source }}</a>
+ {{- else -}}
+ — {{ $source }}
+ {{- end -}}
+ </footer>
+ {{- end -}}
+</blockquote>
--- /dev/null
+{{ 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-2 max-w-2xl">
+ {{ $pinned := where .Pages "Params.pinned" true }}
+ {{ $unpinned := where .Pages "Params.pinned" false }}
+
+ <!-- Pinned posts first -->
+ {{ range (sort $pinned "Date" "desc") }}
+ {{ partial "article-list-item.html" . }}
+ {{ end }}
+
+ <!-- Regular posts -->
+ {{ range (sort $unpinned "Date" "desc") }}
+ {{ partial "article-list-item.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 }}
--- /dev/null
+{{ 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-2 max-w-2xl">
+ {{ $pinned := where .Pages "Params.pinned" true }}
+ {{ $unpinned := where .Pages "Params.pinned" false }}
+
+ <!-- Pinned posts first -->
+ {{ range (sort $pinned "Date" "desc") }}
+ {{ partial "article-list-item.html" . }}
+ {{ end }}
+
+ <!-- Regular posts -->
+ {{ range (sort $unpinned "Date" "desc") }}
+ {{ partial "article-list-item.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 }}