Open szunami opened 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.
tag
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.
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.
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.