aaranxu / tale-zola

Tala-Zola is a minimal Zola theme ported from the Jekyll theme Tale, helping you to build a nice and seo-ready blog.
https://tale-zola.netlify.app
MIT License
34 stars 21 forks source link

"Pinned" appearing on every entry in catalogue #1

Open ajdlinux opened 3 years ago

ajdlinux commented 3 years ago

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?

apisashla commented 2 years ago

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.

aaranxu commented 2 years ago

I will fix it soon.

rfj74 commented 1 year ago

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