mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
add Atom feed
This commit is contained in:
parent
bfc1481e10
commit
cc8328d6a7
1 changed files with 27 additions and 0 deletions
27
blog/atom.xml
Normal file
27
blog/atom.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
layout: nil
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
|
||||
<title>The beets blog.</title>
|
||||
<link href="{{ site.url }}/blog/" />
|
||||
<link href="{{ site.url }}/blog/atom.xml" rel="self" />
|
||||
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
||||
<id>{{ site.url }}/blog/</id>
|
||||
<author>
|
||||
<name>Adrian Sampson</name>
|
||||
<email>adrian@radbox.org</email>
|
||||
</author>
|
||||
|
||||
{% for post in site.posts %}
|
||||
<entry>
|
||||
<title>{{ post.title }}</title>
|
||||
<link href="http://{{ site.url }}{{ post.url }}"/>
|
||||
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||
<id>{{site.url }}{{ post.id }}</id>
|
||||
<content type="html">{{ post.content | xml_escape }}</content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
|
||||
</feed>
|
||||
Loading…
Reference in a new issue