I am trying to set up SEO in a LocomotiveCMS installation using liquid syntax. I'm trying to code it so that the page title is pulled dynamically using {{ page.title }} and then forcing it to capitalize the first letter of each word.
I tried this:
<title>
{{ page.title | camelcase }} | {{ site.name }}
</title>
Based on the liquid syntax documentation here: http://docs.shopify.com/themes/liquid-basics/output#camelize
But it's not working. Using capitalize
works, but it only capitalizes the first letter of the first word.
Thanks!
camelize
in place ofcamelcase
as well but that didn't work either. – APAD1camelcase
is a Shopify filter, not a Liquid filter - so it won't work in Locomotive CMS. – Luke