-
Notifications
You must be signed in to change notification settings - Fork 99
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
Case sensitivity causes confusing archive generation #43
Comments
@alfredxing, have a minute? |
I've been super busy this term so I've barely been able to keep up! Reminds me of a previous discussion about whether tags should be case-sensitive or not. What are your thoughts on that? We can either make tags case-insensitive, or make the generated URLs case-sensitive... |
I'd vote making tags case-insensitive so, in the example above, |
The real problem, that one of the tag pages will be missed. |
Same as #24 |
A fix for this is here: fc8af85e/lib/jekyll-archives.rb and fc8af85e/lib/jekyll-archives/archive.rb and an alternate fix is in #82. Tags and category hashes are sorted by default as
Here's the default output of
As you can see Jekyll sorts However, So I'm using a method for case-insensitive tag and categories. I borrowed it from the date
So it works nicely to create case-insensitive tag & category archive page generation. The generated page titles default to downcased, but you can alter that to uppercase, or capitalized using some lines in |
@alfredxing no please do not make tag case insensitive, it is same as url, by default |
The problem: You have both tags "USA" and "usa" and the following
jekyll-archives
configuration:USA has 4 posts
usa has 1 post
The result:
On the page generated at
/tags/usa
will include only the 4 posts tagged in caps.Interim solution:
Users should build a habit of consistent capitalization when tagging.
The text was updated successfully, but these errors were encountered: