1

Ajustement de l'apparence des taxonomies en aside

This commit is contained in:
2025-11-06 20:28:49 +01:00
parent 4e57e438c6
commit 63609e3773
6 changed files with 34 additions and 11 deletions

View File

@@ -12,7 +12,9 @@
{{- end -}}
{{- end -}}
{{- if gt ($scratch.Get "blocks") 0 }}
<aside>
<aside class="panel">
<details>
<summary>Taxonomies</summary>
{{- range $taxonomy, $_ := $ctx.Site.Taxonomies -}}
{{- with $ctx.Page.GetTerms $taxonomy }}
<section>
@@ -29,5 +31,6 @@
</section>
{{- end }}
{{- end }}
</details>
</aside>
{{- end }}

View File

@@ -1,7 +1,11 @@
{{ define "main" }}
{{ partial "hero-section.html" . }}
<main>
{{ .Content }}
{{ with .Content }}
<article class="article-body">
{{ . }}
</article>
{{ end }}
{{- with .Pages }}
{{- partial "keywords.html" (.ByTitle) }}