diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-08 20:32:24 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-08 20:32:24 -0400 |
commit | 8d3731e0dc684c8798c652d5d433721e95057c27 (patch) | |
tree | a4d9d448c80b49e7dd3796cd694dbfb6b3beca2f | |
parent | a20dc08e105e85171bf5466cacb475b3bbcd8820 (diff) | |
download | my_new_personal_website-8d3731e0dc684c8798c652d5d433721e95057c27.tar.xz my_new_personal_website-8d3731e0dc684c8798c652d5d433721e95057c27.zip |
updated titlecase filter, added titlecase filter to entry titles in article.html partial
-rw-r--r-- | _plugins/custom_filters.rb | 1 | ||||
-rw-r--r-- | themes/classic/source/_includes/article.html | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/_plugins/custom_filters.rb b/_plugins/custom_filters.rb index 1ee39fa8..158586af 100644 --- a/_plugins/custom_filters.rb +++ b/_plugins/custom_filters.rb @@ -25,7 +25,6 @@ module OctopressFilters RubyPants.new(input).to_html end def titlecase(input) - require 'titlecase' input.titlecase end def datetime(date) diff --git a/themes/classic/source/_includes/article.html b/themes/classic/source/_includes/article.html index 1be65526..92c06024 100644 --- a/themes/classic/source/_includes/article.html +++ b/themes/classic/source/_includes/article.html @@ -5,9 +5,9 @@ {% endif %} <header> {% if index %} - <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title }}</a></h1> + <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title | titlecase }}</a></h1> {% else %} - <h1 class="entry-title">{{ page.title }}</h1> + <h1 class="entry-title">{{ page.title | titlecase }}</h1> {% endif %} {% unless page.nometa %} <p> @@ -26,3 +26,4 @@ {% else %} <div class="entry-content">{{ content | smart_quotes }}</div> {% endif %} + |