-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfeed.xml
More file actions
24 lines (24 loc) · 765 Bytes
/
Copy pathfeed.xml
File metadata and controls
24 lines (24 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
layout: feed
---
{% for post in site.posts %}
<item>
<title><![CDATA[{{ post.title }}]]></title>
<description>
<![CDATA[
{{ post.excerpt | markdownify }}
{{ post.content | markdownify }}
{% if post.categories.size > 0 %}
<p>Posted in: {{ post.categories | array_to_sentence_string }}</p>
{% endif %}
{% if post.tags.size > 0 %}
<p>Tagged with: {{ post.tags | array_to_sentence_string }}</p>
{% endif %}
]]>
</description>
<link><![CDATA[{{site.url}}{{ post.url }}]]></link>
<author><![CDATA[{% if post.author %}{{ post.author }}{% else %}{{ site.author }}{% endif %}]]></author>
<guid><![CDATA[{{ post.url }}]]></guid>
<pubDate>{{ post.date | date_to_xmlschema }}</pubDate>
</item>
{% endfor %}