Skip to content

Commit d577da7

Browse files
committed
Merge pull request imathis#1400 from axiac/fixed-titlecase-usage
Fixed titlecase usage
2 parents cf4bdae + c4dff25 commit d577da7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.themes/classic/source/_includes/archive_post.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% capture category %}{{ post.categories | size }}{% endcapture %}
2-
<h1><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1>
2+
<h1><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
33
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
44
{% if category != '0' %}
55
<footer>

.themes/classic/source/_includes/custom/category_feed.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: nil
44
<?xml version="1.0" encoding="utf-8"?>
55
<feed xmlns="http://www.w3.org/2005/Atom">
66

7-
<title><![CDATA[{{ page.title }} | {{ site.title }}]]></title>
7+
<title><![CDATA[{% if site.titlecase %}{{ page.title | titlecase | cdata_escape }}{% else %}{{ page.title | cdata_escape }}{% endif %} | {{ site.title | cdata_escape }}]]></title>
88
<link href="{{ site.url }}/{{ page.feed_url }}" rel="self"/>
99
<link href="{{ site.url }}/"/>
1010
<updated>{{ site.time | date_to_xmlschema }}</updated>
@@ -17,7 +17,7 @@ layout: nil
1717

1818
{% for post in site.categories[page.category] limit: 5 %}
1919
<entry>
20-
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
20+
<title type="html"><![CDATA[{% if site.titlecase %}{{ post.title | titlecase | cdata_escape }}{% else %}{{ post.title | cdata_escape }}{% endif %}]]></title>
2121
<link href="{{ site.url }}{{ post.url }}"/>
2222
<updated>{{ post.date | date_to_xmlschema }}</updated>
2323
<id>{{ site.url }}{{ post.id }}</id>

.themes/classic/source/_includes/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
55
<head>
66
<meta charset="utf-8">
7-
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
7+
<title>{% if page.title %}{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %} - {% endif %}{{ site.title }}</title>
88
<meta name="author" content="{{ site.author }}">
99

1010
{% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %}

.themes/classic/source/atom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: nil
44
<?xml version="1.0" encoding="utf-8"?>
55
<feed xmlns="http://www.w3.org/2005/Atom">
66

7-
<title><![CDATA[{{ site.title }}]]></title>
7+
<title><![CDATA[{{ site.title | cdata_escape }}]]></title>
88
<link href="{{ site.url }}/atom.xml" rel="self"/>
99
<link href="{{ site.url }}/"/>
1010
<updated>{{ site.time | date_to_xmlschema }}</updated>
@@ -17,7 +17,7 @@ layout: nil
1717

1818
{% for post in site.posts limit: 20 %}
1919
<entry>
20-
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
20+
<title type="html"><![CDATA[{% if site.titlecase %}{{ post.title | titlecase | cdata_escape }}{% else %}{{ post.title | cdata_escape }}{% endif %}]]></title>
2121
<link href="{{ site.url }}{{ post.url }}"/>
2222
<updated>{{ post.date | date_to_xmlschema }}</updated>
2323
<id>{{ site.url }}{{ post.id }}</id>

0 commit comments

Comments
 (0)