Browse Source

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

unreleased_contents
Brandon Mathis 14 years ago
parent
commit
8d3731e0dc
  1. 1
      _plugins/custom_filters.rb
  2. 5
      themes/classic/source/_includes/article.html

1
_plugins/custom_filters.rb

@ -25,7 +25,6 @@ module OctopressFilters
RubyPants.new(input).to_html RubyPants.new(input).to_html
end end
def titlecase(input) def titlecase(input)
require 'titlecase'
input.titlecase input.titlecase
end end
def datetime(date) def datetime(date)

5
themes/classic/source/_includes/article.html

@ -5,9 +5,9 @@
{% endif %} {% endif %}
<header> <header>
{% if index %} {% 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 %} {% else %}
<h1 class="entry-title">{{ page.title }}</h1> <h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %} {% endif %}
{% unless page.nometa %} {% unless page.nometa %}
<p> <p>
@ -26,3 +26,4 @@
{% else %} {% else %}
<div class="entry-content">{{ content | smart_quotes }}</div> <div class="entry-content">{{ content | smart_quotes }}</div>
{% endif %} {% endif %}

Loading…
Cancel
Save