Skip to content

Commit d6d8ecf

Browse files
authored
Merge pull request #148 from jarrodwb/rss-fixes
make rss great again
2 parents a79e15b + b27e858 commit d6d8ecf

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

_includes/license.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<h2>Licensing</h2>
2+
<p>
3+
Unless otherwise noted, all content is licensed under a <a href="https://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.
4+
</p>

_layouts/post.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ <h2>{{ page.title }}</h2>
77

88
{{ content }}
99

10+
{% include license.html %}
11+
1012
<div class="post__author js-fade-in">
1113
{% assign author = site.data.authors[page.meta.author] %}
1214
{% if author %}

about.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ <h2>Code of Conduct</h2>
4545
{{ conduct | markdownify }}
4646
</div>
4747

48-
<h2>Licensing</h2>
49-
<p>
50-
Unless otherwise noted, all content is licensed under a <a href="https://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.
51-
</p>
48+
{% include license.html %}
5249

5350
<h3>Images</h3>
5451
<p>

blog/feed.rss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ layout: empty
77
<title>{{ site.name | xml_escape }}</title>
88
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
99
<link>{{ site.baseurl }}</link>
10-
{% for post in site.posts limit:10 %}
10+
<copyright>CC BY 3.0</copyright>
11+
{% for post in site.posts %}
1112
<item>
1213
<title>{{ post.title | xml_escape }}</title>
13-
{% if post.author.name %}
14-
<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>
14+
{% if post.meta.author %}
15+
<dc:creator>{{ post.meta.author | xml_escape }}</dc:creator>
1516
{% endif %}
16-
{% if post.excerpt %}
17-
<description>{{ post.excerpt | xml_escape }}</description>
18-
{% else %}
19-
<description>{{ post.content | xml_escape }}</description>
20-
{% endif %}
17+
<description><![CDATA[{{ post.content }}{% include license.html %}]]></description>
2118
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
2219
<link>{{ site.baseurl }}{{ post.url }}</link>
2320
<guid isPermaLink="true">{{ site.baseurl }}{{ post.url }}</guid>

0 commit comments

Comments
 (0)