From 8d3731e0dc684c8798c652d5d433721e95057c27 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Wed, 8 Jun 2011 20:32:24 -0400 Subject: [PATCH] updated titlecase filter, added titlecase filter to entry titles in article.html partial --- _plugins/custom_filters.rb | 1 - 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 1ee39fa..158586a 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 1be6552..92c0602 100644 --- a/themes/classic/source/_includes/article.html +++ b/themes/classic/source/_includes/article.html @@ -5,9 +5,9 @@ {% endif %}
{% if index %} -

{{ page.title }}

+

{{ page.title | titlecase }}

{% else %} -

{{ page.title }}

+

{{ page.title | titlecase }}

{% endif %} {% unless page.nometa %}

@@ -26,3 +26,4 @@ {% else %}

{{ content | smart_quotes }}
{% endif %} +