Skip to content

Fix title capitalization #384

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

Merged
merged 1 commit into from
Oct 8, 2014
Merged

Fix title capitalization #384

merged 1 commit into from
Oct 8, 2014

Conversation

igstan
Copy link
Contributor

@igstan igstan commented Oct 8, 2014

The capitalize filter in Liquid templates does not work on arrays.
It first converts arrays to string, and then capitalizes.

The map filter wouldn't work either, because it only maps properties.

Solution based on: http://stackoverflow.com/a/21829139/58808

@igstan igstan mentioned this pull request Oct 8, 2014
The `capitalize` filter in Liquid templates does not work on arrays.
It first converts arrays to string, and then capitalizes.

The `map` filter wouldn't work either, because it only maps properties.

Solution based on: http://stackoverflow.com/a/21829139/58808
@heathermiller
Copy link
Member

LGTM, thank you!

heathermiller added a commit that referenced this pull request Oct 8, 2014
@heathermiller heathermiller merged commit e024fc2 into scala:master Oct 8, 2014
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