Apparence et navigation dans les taxonomies
This commit is contained in:
22
themes/42/layouts/taxonomies/taxonomies.html
Normal file
22
themes/42/layouts/taxonomies/taxonomies.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "hero-page.html" . }}
|
||||
<main>
|
||||
{{ with .Content }}
|
||||
<article class="article-body">
|
||||
{{ . }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ $ctx := . }}
|
||||
<ul class="keywords">
|
||||
{{- range $taxonomy, $terms := $ctx.Site.Taxonomies -}}
|
||||
{{ with $ctx.Site.GetPage $taxonomy }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<sub>{{ len $terms }}</sub>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user