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

Categories page always uses the plural of 'post' #595

Closed
3 tasks done
GenericMadScientist opened this issue Jun 7, 2022 · 1 comment
Closed
3 tasks done

Categories page always uses the plural of 'post' #595

GenericMadScientist opened this issue Jun 7, 2022 · 1 comment

Comments

@GenericMadScientist
Copy link
Contributor

GenericMadScientist commented Jun 7, 2022

Checklist

  • I have read the tutorials and know the correct effect of the functional design.
  • There are no similar reports on existing issues (including closed ones).
  • I found the bug on the latest code of the master branch.

Describe the bug

On the categories page, even categories with 1 post will say '1 posts'. Looking at the code for _layouts/categories.html, there is no check for exactly 1 post so this issue will arise with any locale that requires different words for different amounts of posts.

To Reproduce

Steps to reproduce the behavior: have a category with exactly 1 post. This is exhibited by the demo site with the 'Demo' category.

Expected behavior

Such categories should use the appropriate word for the number of posts, so in this case say '1 post' instead of '1 posts'.

Screenshots

plural-screenshot

Environment

Command Version
ruby -v 2.7.3
gem -v 3.1.6
bundle -v 2.2.20
bundle exec jekyll -v 4.2.2
bundle info jekyll-theme-chirpy 5.1.0

Desktop

  • OS: Windows 10
  • Browser: Firefox 101.0

Smartphone

Additional context

None.

@github-actions
Copy link

github-actions bot commented Jun 7, 2022

👋 Hi @GenericMadScientist,

This issue is being automatically closed because it does not follow the issue template. Please DO NOT open another similar issue, try to edit the current issue according to the template, then it will be reopened automatically.

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

1 participant