nascondi tag featured in sidebar #182

Merged
paspo merged 1 commits from paspo/bglug.it:hide-feat-tag into main 2024-08-03 19:19:10 +00:00
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>