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.

Home Page:https://tale-zola.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Pinned" appearing on every entry in catalogue

ajdlinux opened this issue · 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?

commented

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.

I will fix it soon.

commented

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