-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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 in mixed (original) case *as well as* downcase #1739
Comments
How would you separate them? |
|
Perhaps |
I'm easy as to how you guys implement it. I'd just prefer to be able to have a choice for presenting in Liquid as I did before commit 73ca35e :) |
Also, |
I got mixed case back again with some JavaScript hackery. http://paulhammant.com/categories.html <script type="text/javascript">
function fixupText(attr) {(
$("." + attr).each(function() {
var textNode = $(this);
textNode.html(textNode.text().replace(/(?:^|\s)\w/g, function(match) {
return match.toUpperCase();
}).replace("Mvc", "MVC").replace("Nosql", "NoSQL").replace("-side", "-Side").replace("Branch By Abstraction, Etc", "Branch by Abstraction, etc").replace("Ui ", "UI ").replace("Devops", "DevOPS").replace("[", "<span>").replace("]", "</span>"));
textNode.removeClass(attr);
});
}
</script> and classes added to pertinent anchors and h2s. |
My take on naming conventions:
An alternative to To me, a slug is a url-friendly version of a string. Most slug-generating methods/functions I've used will strip common words (like "a" or "the"). Other ways I've seen an "original" string stored is to have a "raw" property. Like
|
Is anybody working on that? |
@manuelgruber No, not right now! |
Tracking in #2977. |
With ref to: 73ca35e
It would be awesome to have both the downcase that happened after #842 AND the original case of the category. Why? Then this would be possible, the world would look pretty again:
I suggest something like post.categoriesOrigCase in additon to post.categories
-ph
The text was updated successfully, but these errors were encountered: