Created
May 2, 2015 09:09
-
-
Save DanWebb/3a3016a431688a52e019 to your computer and use it in GitHub Desktop.
Get a blog name when you only have the article to work with
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign blog_name = get_blog_name.url | remove: '/blogs/' %} | |
{% assign blog_name = blog_name | split: '/' %} | |
{% assign blog_name = blog_name[0] | replace: '-', ' ' | capitalize %} | |
{{ blog_name }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment