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

Remove redundant downcase from _layouts/categories.html #4531

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

eabneka
Copy link
Contributor

@eabneka eabneka commented Sep 24, 2023

abundant code

This is an enhancement or feature.

Summary

{{ "ABCD" |  slugify }}
abcd

Context

"slugify" filter calls "Utils.slugfy" without "cased" parameter,
which set to "false" default value.

      slug.downcase! unless cased

So "downcase" filter following "slugify seems rebundant.

https://github.com/jekyll/jekyll/blob/master/lib/jekyll/filters.rb#L62

https://github.com/jekyll/jekyll/blob/master/lib/jekyll/utils.rb#L202

abundant code
@iBug iBug changed the title Update categories.html Remove redundant downcase from _layouts/categories.html Apr 22, 2024
@iBug iBug merged commit 6eaee03 into mmistakes:master Apr 22, 2024
1 check passed
minyoongi96 pushed a commit to minyoongi96/minyoongi96.github.io that referenced this pull request Aug 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants