Dynamic Products Atom XML
---
layout: none
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
{% for product in site.data.products limit:25 %}{% if forloop.first == true %}{% assign updated = post.atomdate %}<updated>{{ updated | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>{% endif %}{% endfor %}
<link rel="self" href="{{ site.url }}/atom.xml"/>
<author><name>Kin Lane</name></author>
<id>{{ site.url }}/data/atom.xml</id>
{% for product in site.data.products limit:25 %}<entry>
<title>{{ product.title }}</title>
<link href="{{ site.url }}/products/{{ product.id }}"/>
<updated>{{ post.atomdate | date: "%Y-%m-%dT%H:%M:%SZ" }}</updated>
<content><![CDATA[{{ post.description | strip_html | xml_escape }}]]></content>
<id>{{ site.url }}/products/{{ product.id }}</id>
</entry>{% endfor %}
</feed>