tale-zola icon indicating copy to clipboard operation
tale-zola copied to clipboard

"Pinned" appearing on every entry in catalogue

Open ajdlinux opened this issue 3 years ago • 3 comments

I see "Pinned" on every single post in the catalogue. This doesn't make sense - from what I can tell in the original Tale theme, "Pinned" is only supposed to appear on posts that are marked as sticky?

ajdlinux avatar Jun 11 '21 16:06 ajdlinux

I am also seeing this issue. It's confusing. I can get rid of the "pinned" markings entirely by changing this line in tale-zola/templates/macros.html

<span class="catalogue-pinned">{{ config.extra.expressions.pinned | default(value="Pinned")}} &middot;</span>

to the following:

<span class="catalogue-pinned">{{ config.extra.expressions.pinned | default(value="")}}</span>

and by making sure there is no

[extra.expressions]
pinned = "Pinned"

line in config.toml. It seems as though, if either of these values are set, every post header on the post list will contain the "Pinned" indicator.

Of course, this quick fix simply removes the "Pinned" feature entirely rather than making it work correctly. If I figure out how to make it work on my page, I'll submit a pull request, but otherwise I'd appreciate any help available.

apisashla avatar Nov 24 '21 01:11 apisashla

I will fix it soon.

aaranxu avatar Nov 24 '21 02:11 aaranxu

I installed the Theme a few days ago and the issue still seems to be there. Any idea when this will be fixed?

rfj74 avatar Feb 07 '23 13:02 rfj74