-
Notifications
You must be signed in to change notification settings - Fork 4
/
atom.xml
41 lines (37 loc) · 1.84 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="{{ site.url }}{{ site.baseurl }}/atom.xml" rel="self"/>
<link href="{{ site.url }}{{ site.baseurl }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title | xml_escape }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ site.baseurl }}{{ post.id }}</id>
<content type="html">
{{ post.content | xml_escape }}
{% comment %} 'post.codeproject == false' checks if it's DEFINED (or not), doesn't check the boolean!! {% endcomment %}
{% comment %} see https://help.shopify.com/themes/liquid/basics/true-and-false for a bit more info {% endcomment %}
{% comment %} 'unless' is the inverse of the 'if' tag (i.e. the 'else' bit on an 'if' statement) {% endcomment %}
{% unless post.codeproject == false %}
<p>The post <a href="{{ site.url | xml_escape }}{{ post.url | xml_escape}}">{{ post.title | xml_escape }}</a> first appeared on my blog <a href="http://mattwarren.org">Performance is a Feature!</a></p>
{% comment %} Enable CodeProject integration {% endcomment %}
<a href="http://www.codeproject.com/script/Articles/BlogFeedList.aspx?amid=641373" rel="tag" style="display:none">CodeProject</a>
{% endunless %}
</content>
{% for tag in post.tags %}
<category term='{{ tag }}' scheme='{{ site.url }}{{ site.baseurl }}/tags#{{ tag }}'/>
{% endfor %}
</entry>
{% endfor %}
</feed>