Do not show a tag, series, or category if it is called pinned.

This commit is contained in:
2025-11-17 17:59:40 -07:00
parent 1543c5602f
commit af0fe569a3
3 changed files with 8 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
{{ with .Params.categories }} {{ with .Params.categories }}
<p> <p>
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;" <img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
src="/feathericons/16px-a9a9b3/folder.svg" alt="Series:" src="/feathericons/16px-a9a9b3/folder.svg" alt="Categories:"
> >
{{ range . -}} {{ range . -}}
{{ if (not (eq . "pinned")) }}
<span class="tag"><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span> <span class="tag"><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
{{ end }}
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}

View File

@@ -4,7 +4,9 @@
src="/feathericons/16px-a9a9b3/tv.svg" alt="Series:" src="/feathericons/16px-a9a9b3/tv.svg" alt="Series:"
> >
{{ range . -}} {{ range . -}}
{{ if (not (eq . "pinned")) }}
<span class="tag"><a href="{{ "series/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span> <span class="tag"><a href="{{ "series/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
{{ end }}
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}

View File

@@ -1,10 +1,12 @@
{{ with .Params.tags }} {{ with .Params.tags }}
<p> <p>
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;" <img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
src="/feathericons/16px-a9a9b3/tag.svg" alt="Series:" src="/feathericons/16px-a9a9b3/tag.svg" alt="Tags:"
> >
{{ range . -}} {{ range . -}}
{{ if (not (eq . "pinned")) }}
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span> <span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
{{ end }}
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}