Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Commit

Permalink
Use custom type instead of categories (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smith authored Dec 18, 2016
1 parent cfa1637 commit 7e33e01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions atom.articles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ layout: null
<email>{{ author[1].email }}</email>
</author>
{% endfor %}
{% for post in site.categories.articles %}
{% for post in site.posts %}
{% if post.custom_type == 'post' or post.custom_type == 'artdirect' %}
<entry>
<id>https://theboldreport.net{{ post.id }}</id>
<link type="text/html" rel="alternate" href="http://theboldreport.net{{ post.url }}"/>
Expand All @@ -32,11 +33,16 @@ layout: null
<content type="html">
<![CDATA[
{% if post.subtitle %}
{{ post.subtitle }}
<h2>{{ post.subtitle }}</h2>
{% endif %}
{{ post.content }}
{% if post.custom_type == 'artdirect' %}
<hr>
<p>This is an art-directed post. <a href="{{ site.url | xml_escape }}{{ post.url | xml_escape }}">Check it out in the browser</a>.</p>
{% endif %}
]]>
</content>
</entry>
{% endif %}
{% endfor %}
</feed>
8 changes: 6 additions & 2 deletions atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,21 @@ layout: null
<updated>{{ post.date | date_to_xmlschema }}</updated>
<author>
<name>{{ site.data.authors[post.author].display_name }}</name>
<uri>{{ site.data.authors[post.author].web }}</uri>
<uri>{{ site.data.authors[post.author].web }}</uri>
</author>
<content type="html">
<![CDATA[
{% if post.subtitle %}
{{ post.subtitle }}
<h2>{{ post.subtitle }}</h2>
{% endif %}
{{ post.content }}
{% if post.custom_type == 'link' %}
<p><a title="Permalink to ‘{{ post.title }}’" href="{{ site.url | xml_escape }}{{ post.url | xml_escape }}">∞ Read on <em>The Bold Report</em></a></p>
{% endif %}
{% if post.custom_type == 'artdirect' %}
<hr>
<p>This is an art-directed post. <a href="{{ site.url | xml_escape }}{{ post.url | xml_escape }}">Check it out in the browser</a>.</p>
{% endif %}
]]>
</content>
</entry>
Expand Down

0 comments on commit 7e33e01

Please sign in to comment.