Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Pinned" appearing on every entry in catalogue #1

Open
ajdlinux opened this issue Jun 11, 2021 · 3 comments
Open

"Pinned" appearing on every entry in catalogue #1

ajdlinux opened this issue Jun 11, 2021 · 3 comments

Comments

@ajdlinux
Copy link

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
Copy link

apisashla commented Nov 24, 2021

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
Copy link
Owner

aaranxu commented Nov 24, 2021

I will fix it soon.

@rfj74
Copy link

rfj74 commented Feb 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants