nascondi tag featured in sidebar

This commit is contained in:
Paolo Asperti 2024-08-03 20:33:15 +02:00
parent 2f033b0af8
commit 9580efdd00
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 7 additions and 1 deletions

View File

@ -1,8 +1,11 @@
<section>
{{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ if not (in $hiddenTags .Page.LinkTitle ) }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML }}</a></li>
{{ end }}
{{ end }}
</ul>
</section>

View File

@ -1,8 +1,11 @@
<section>
{{- $hiddenTags := slice "Linuxday-Featured" -}}
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
{{ if not (in $hiddenTags .Page.LinkTitle ) }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
{{ end }}
</ul>
</section>