diff options
| author | Valentin VALCIU <axiac.ro@gmail.com> | 2013-10-28 12:48:05 +0200 |
|---|---|---|
| committer | Valentin VALCIU <axiac.ro@gmail.com> | 2013-10-28 12:48:05 +0200 |
| commit | a79855d1c32f6e337994b96b30bea8f4a75309f4 (patch) | |
| tree | 3b862ba49fdf2d71b2391b6fdb58cd4e89e2f8bd /.themes/classic/source/_includes/custom | |
| parent | 74d7238934010e2bc5d36536c0a99255a85ca079 (diff) | |
| download | my_new_personal_website-a79855d1c32f6e337994b96b30bea8f4a75309f4.tar.xz my_new_personal_website-a79855d1c32f6e337994b96b30bea8f4a75309f4.zip | |
* consistently convert page and post titles to titlecase if site.titlecase is true;
Diffstat (limited to '.themes/classic/source/_includes/custom')
| -rw-r--r-- | .themes/classic/source/_includes/custom/category_feed.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.themes/classic/source/_includes/custom/category_feed.xml b/.themes/classic/source/_includes/custom/category_feed.xml index f47c5536..8bc34fe9 100644 --- a/.themes/classic/source/_includes/custom/category_feed.xml +++ b/.themes/classic/source/_includes/custom/category_feed.xml @@ -4,7 +4,7 @@ layout: nil <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <title><![CDATA[{{ page.title }} | {{ site.title }}]]></title> + <title><![CDATA[{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %} | {{ site.title }}]]></title> <link href="{{ site.url }}/{{ page.feed_url }}" rel="self"/> <link href="{{ site.url }}/"/> <updated>{{ site.time | date_to_xmlschema }}</updated> @@ -17,7 +17,7 @@ layout: nil {% for post in site.categories[page.category] limit: 5 %} <entry> - <title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title> + <title type="html"><![CDATA[{% if site.titlecase %}{{ post.title | titlecase | cdata_escape }}{% else %}{{ post.title | cdata_escape }}{% endif %}]]></title> <link href="{{ site.url }}{{ post.url }}"/> <updated>{{ post.date | date_to_xmlschema }}</updated> <id>{{ site.url }}{{ post.id }}</id> |
