diff options
author | Andrew Dolgov <[email protected]> | 2011-04-04 13:30:33 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-04 13:30:47 +0400 |
commit | 20e43935fca9d1fa8838782cf714c40cc286acbc (patch) | |
tree | 3a596a9ca7da9aa3f84d71fcb648acf9086719e5 /templates | |
parent | 5de271146be39d7a1d495688b66076b50923a4e7 (diff) |
generate template-enabled Atom feeds instead of makeshift rss
Diffstat (limited to 'templates')
-rw-r--r-- | templates/generated_feed.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/generated_feed.txt b/templates/generated_feed.txt new file mode 100644 index 000000000..9631d4cf8 --- /dev/null +++ b/templates/generated_feed.txt @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $BeginBlock feed --> +<feed xmlns="http://www.w3.org/2005/Atom"> +<title>${FEED_TITLE}</title> +<generator uri="http://tt-rss.org/">Tiny Tiny RSS/${VERSION}</generator> +<updated>${ARTICLE_UPDATED}</updated> +<id>${FEED_URL}</id> +<link href="${FEED_URL}" rel="self"/> +<!-- $BeginBlock feed_hub --> +<link href="${HUB_URL}" rel="hub"/> +<!-- $EndBlock feed_hub --> +<link href="${SELF_URL}" rel="alternate"/> +<!-- $BeginBlock entry --> +<entry> + <id>${ARTICLE_ID}</id> + <link href="${ARTICLE_LINK}" rel="alternate" type="text/html"/> + <title>${ARTICLE_TITLE}</title> + <summary type="html"><![CDATA[${ARTICLE_EXCERPT}]]></summary> + <content type="html"><![CDATA[${ARTICLE_CONTENT}]]></content> + <updated>${ARTICLE_UPDATED}</updated> + <author><name>${ARTICLE_AUTHOR}</name></author> +<!-- $BeginBlock category --> + <category term="${ARTICLE_CATEGORY}"/> +<!-- $EndBlock category --> +<!-- $BeginBlock enclosure --> + <link rel="enclosure" + type="${ARTICLE_ENCLOSURE_TYPE}" + length="${ARTICLE_ENCLOSURE_LENGTH}" + href="${ARTICLE_ENCLOSURE_URL}"/> +<!-- $EndBlock enclosure --> +</entry> +<!-- $EndBlock entry --> +<!-- $EndBlock feed --> +</feed> +<!-- vim:ft=xml + --> |