forked from Bunteshaus/bunteshaus.de
27 lines
1.3 KiB
HTML
27 lines
1.3 KiB
HTML
{{ $s := .Site.Params }}
|
|
<section class="sidebar_inner">
|
|
{{ if .IsSection }}
|
|
{{ $true := false }}
|
|
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
|
{{ if ne $taxonomyname nil }}
|
|
{{ $true = true }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if $true }}
|
|
<!-- <h3 class="mt-4 taxonomy" id="categories-section">{{ T "categories" }}</h3> -->
|
|
{{- $featured := where .Site.RegularPages "Params.featured" true }}
|
|
{{ if $featured }}
|
|
<li style="list-style: none;"><a href="{{ "/" | relLangURL}}{{ "featured" | urlize }}">{{ "featured" | T | humanize }}</a></li>
|
|
{{ end }}
|
|
{{- $recurrent := where .Site.RegularPages "Params.recurrent" true }}
|
|
{{ if $recurrent }}
|
|
<li style="list-style: none;"><a href="{{ "/" | relLangURL}}{{ "recurrent" | urlize }}">{{ "recurrent" | T | humanize }}</a></li>
|
|
{{ end }}
|
|
{{ range $taxonomyname, $taxonomy := where .Site.Taxonomies.categories ".Page.Section" .Section }}
|
|
<li style="list-style: none;"><a href="{{ "categories/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname | humanize }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</section>
|
|
|