-
Notifications
You must be signed in to change notification settings - Fork 2
/
product_feed.xml
25 lines (25 loc) · 1.01 KB
/
product_feed.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
---
title : Product Feed
---
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
<title>{{ site.title }}</title>
<link rel="self" href="{{ site.production_url }}/{{ site.product_feed_path }}"/>
{% for post in site.posts %}
<entry>
<g:id>{{ post.id }}</g:id>
<g:date>{{ post.date | date: "%F"}}</g:date>
<g:title>{{ post.title }}</g:title>
<g:description>{{ post.excerpt | remove: '<p>' | remove: '</p>' | xml_escape }}</g:description>
<g:link>{{ site.production_url }}{{ post.id }}</g:link>
<g:product_type>{{ post.tags | join: ',' }}</g:product_type>
<g:image_link>http://www.gravatar.com/avatar/065074dd6bbb01a64651ae9572ee40d5.png?size=600&token={{ post.id }}</g:image_link>
<!--begin required but useless fields-->
<g:brand>Example</g:brand>
<g:condition>new</g:condition>
<g:availability>in stock</g:availability>
<g:price>9.99 USD</g:price>
<!--end required but useless fields-->
</entry>
{% endfor %}
</feed>