Fixed display of pinned posts in taxonomy pages
Signed-off-by: GitHub Action <action@github.com>
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if and (ge (len (where .Site.Pages ".Params.pin" true)) 1) (.Site.Params.pinned) (ne .Kind "taxonomy") -}}
|
{{- if and (ge (len (where .Site.Pages ".Params.pin" true)) 1) (.Site.Params.pinned) (not (in .Page.RelPermalink (or "tags" "categories"))) -}}
|
||||||
<h2>{{- .Site.Params.pinned -}}</h2>
|
<h2>{{- .Site.Params.pinned -}}</h2>
|
||||||
{{$pin_name := .Site.Params.pinnedSVGname | default "pin" }}
|
{{$pin_name := .Site.Params.pinnedSVGname | default "pin" }}
|
||||||
<div class="pinned-posts-group">
|
<div class="pinned-posts-group">
|
||||||
|
Reference in New Issue
Block a user