Browse code

updated titlecase filter, added titlecase filter to entry titles in article.html partial

Brandon Mathis authored on 09/06/2011 at 00:32:24
Showing 2 changed files
... ...
@@ -25,7 +25,6 @@ module OctopressFilters
25 25
     RubyPants.new(input).to_html
26 26
   end
27 27
   def titlecase(input)
28
-    require 'titlecase'
29 28
     input.titlecase
30 29
   end
31 30
   def datetime(date)
... ...
@@ -5,9 +5,9 @@
5 5
 {% endif %}
6 6
 <header>
7 7
   {% if index %}
8
-    <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title }}</a></h1>
8
+    <h1 class="entry-title"><a href="{{ page.url }}">{{ page.title | titlecase }}</a></h1>
9 9
   {% else %}
10
-    <h1 class="entry-title">{{ page.title }}</h1>
10
+    <h1 class="entry-title">{{ page.title | titlecase }}</h1>
11 11
   {% endif %}
12 12
   {% unless page.nometa %}
13 13
     <p>
... ...
@@ -26,3 +26,4 @@
26 26
 {% else %}
27 27
 <div class="entry-content">{{ content | smart_quotes }}</div>
28 28
 {% endif %}
29
+