aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-10-16 11:57:29 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-10-16 11:57:29 +0200
commitd98a4de07ec8727b10c3f059c1fbee3e19d01761 (patch)
tree8acde35c469db3cec62ead6b813897ddc4707972 /.themes/classic/source
parent4b87a2fb7d08db399552bff7d1a574d7547c1664 (diff)
downloadmy_new_personal_website-d98a4de07ec8727b10c3f059c1fbee3e19d01761.tar.xz
my_new_personal_website-d98a4de07ec8727b10c3f059c1fbee3e19d01761.zip
Makes titlecase of page/post titles configurable
Diffstat (limited to '.themes/classic/source')
-rw-r--r--.themes/classic/source/_includes/article.html4
-rw-r--r--.themes/classic/source/_layouts/page.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html
index 79e26528..9db07455 100644
--- a/.themes/classic/source/_includes/article.html
+++ b/.themes/classic/source/_includes/article.html
@@ -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">
diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html
index 4edd3ed5..8ba6ec94 100644
--- a/.themes/classic/source/_layouts/page.html
+++ b/.themes/classic/source/_layouts/page.html
@@ -6,7 +6,7 @@ layout: default
<article role="article">
{% if page.title %}
<header>
- <h1 class="entry-title">{{ page.title | titlecase }}</h1>
+ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
{% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %}
</header>
{% endif %}