mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-23 16:08:53 -05:00
updated titlecase filter, added titlecase filter to entry titles in article.html partial
This commit is contained in:
parent
a20dc08e10
commit
8d3731e0dc
@ -25,7 +25,6 @@ module OctopressFilters
|
||||
RubyPants.new(input).to_html
|
||||
end
|
||||
def titlecase(input)
|
||||
require 'titlecase'
|
||||
input.titlecase
|
||||
end
|
||||
def datetime(date)
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user