Do not show a tag, series, or category if it is called pinned.
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user