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

Tags check doesn't appear to work #94

Open
szunami opened this issue Dec 9, 2020 · 1 comment
Open

Tags check doesn't appear to work #94

szunami opened this issue Dec 9, 2020 · 1 comment
Labels

Comments

@szunami
Copy link

szunami commented Dec 9, 2020

https://github.com/pages-themes/minimal/blob/master/_layouts/post.html#L12

On my blog, I was observing a post that had 0 tags (no tag in the frontmatter), yet the tags showed up on the page with an empty string.

I believe Jekyll is loading a single tag with value equal to "".

In my blog, I switched this check to be:

{% if page.tags[0].size > 0 %}

I am happy to contribute this to this project, or work towards a better solution.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant