pages-themes / minimal

Minimal is a Jekyll theme for GitHub Pages
https://pages-themes.github.io/minimal/
Creative Commons Zero v1.0 Universal
1.58k stars 6k forks source link

Tags check doesn't appear to work #94

Open szunami opened 3 years ago

szunami commented 3 years ago

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[bot] commented 2 years ago

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.