aboutsummaryrefslogtreecommitdiff
path: root/layouts/taxonomies
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-09-29 19:17:13 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-10-01 07:51:11 +0200
commit4c41e477e13d37e187c8de4225c7e8056bd9ed28 (patch)
tree33a7b51a0ed2c2ae207fc8f89f1454ccb77596a5 /layouts/taxonomies
parent4720b07e9f18915cf1f6466245a92dedd11fdc55 (diff)
Internalise theme
Diffstat (limited to 'layouts/taxonomies')
-rw-r--r--layouts/taxonomies/home.html32
1 files changed, 22 insertions, 10 deletions
diff --git a/layouts/taxonomies/home.html b/layouts/taxonomies/home.html
index 6a7dce5..0ee22c5 100644
--- a/layouts/taxonomies/home.html
+++ b/layouts/taxonomies/home.html
@@ -1,17 +1,29 @@
-{{ define "main" }}
-{{ $pages := .Pages }}
+{{ define "main" }}
+
<div class="flex flex-col gap-1">
-<h1 class="text-2xl font-extrabold">{{ if .Params.header }}{{ .Params.header }}{{ else }}{{ .Title }}{{ end }}</h1>
-{{ if .Content }}<p class="content text-lg text-gray-900">{{ .Content }}</p>{{ end }}
+ <h1 class="title-small">
+ {{ if .Params.header }}
+ {{ .Params.header }}
+ {{ else }}
+ {{ .Title }}
+ {{ end }}
+ </h1>
+
+ {{ with .Content }}
+ {{ . }}
+ {{ end }}
</div>
-<section class="py-10 flex flex-col gap-10 ">
-<ul class="taxonomy-list">
- {{ range $index, $pages}}
- {{ partial "list/categories" . }}
+<section class="py-10 flex flex-col gap-10">
+ <ul class="taxonomy-list">
+ {{ range $index, $pages := .Pages }}
+ <li>
+ <a href=" {{ .Permalink }} ">
+ {{ .Title }} ({{ len .Pages }})
+ </a>
+ </li>
{{ end }}
-</ul>
+ </ul>
</section>
-
{{ end }}