Makes titlecase of page/post titles configurable

This commit is contained in:
Frederic Hemberger
2011-10-16 11:57:29 +02:00
parent 4b87a2fb7d
commit d98a4de07e
3 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,9 @@
{% unless page.no_header %}
<header>
{% if index %}
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{{ post.title | titlecase }}</a></h1>
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
{% else %}
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
<h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% endif %}
{% unless page.meta == false %}
<p class="meta">