Introduction
Introduction Statistics Contact Development Disclaimer Help
add a version of the Atom and RSS feed with full content - saait - the most bor…
git clone git://git.codemadness.org/saait
Log
Files
Refs
README
LICENSE
---
commit 5081d4732c16126a4cc3cf2e6ac20207f15f0a96
parent 15848b6b5f2da216666ba15123bb320018f10428
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 3 Nov 2020 22:27:35 +0100
add a version of the Atom and RSS feed with full content
Some people prefer to view the whole content in a feed reader, offer this
choice.
Diffstat:
A templates/atom_content.xml/footer.… | 1 +
A templates/atom_content.xml/header.… | 8 ++++++++
A templates/atom_content.xml/item.xml | 15 +++++++++++++++
A templates/rss_content.xml/footer.x… | 2 ++
A templates/rss_content.xml/header.x… | 8 ++++++++
A templates/rss_content.xml/item.xml | 10 ++++++++++
6 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/templates/atom_content.xml/footer.xml b/templates/atom_content.xml…
@@ -0,0 +1 @@
+</feed>
diff --git a/templates/atom_content.xml/header.xml b/templates/atom_content.xml…
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="${lang}">
+ <title type="text">${sitetitle}</title>
+ <subtitle type="text">${description}</subtitle>
+ <updated>${siteupdated}T00:00:00Z</updated>
+ <link rel="alternate" type="text/html" href="${siteurl}" />
+ <id>${siteurl}/atom.xml</id>
+ <link rel="self" type="application/atom+xml" href="${siteurl}/atom.xml…
diff --git a/templates/atom_content.xml/item.xml b/templates/atom_content.xml/i…
@@ -0,0 +1,15 @@
+<entry>
+ <title type="text">${title}</title>
+ <link rel="alternate" type="text/html" href="${siteurl}/${filename}" />
+ <id>${siteurl}/${filename}</id>
+ <updated>${updated}T00:00:00Z</updated>
+ <published>${created}T00:00:00Z</published>
+ <author>
+ <name>${author}</name>
+ <uri>${siteurl}</uri>
+ </author>
+ <summary type="text">${description}</summary>
+ <content type="html"><![CDATA[<h1>${title}</h1>
+ <p><strong>Last modification on </strong> <time>${updated}</time></p>
+ %{contentfile}]]></content>
+</entry>
diff --git a/templates/rss_content.xml/footer.xml b/templates/rss_content.xml/f…
@@ -0,0 +1,2 @@
+</channel>
+</rss>
diff --git a/templates/rss_content.xml/header.xml b/templates/rss_content.xml/h…
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
+<channel>
+ <title>${sitetitle}</title>
+ <description>${description}</description>
+ <link>${siteurl}</link>
diff --git a/templates/rss_content.xml/item.xml b/templates/rss_content.xml/ite…
@@ -0,0 +1,10 @@
+<item>
+ <title>${title}</title>
+ <link>${siteurl}/${filename}</link>
+ <guid>${siteurl}/${filename}</guid>
+ <dc:date>${created}T00:00:00Z</dc:date>
+ <author>${author}</author>
+ <description><![CDATA[<h1>${title}</h1>
+ <p><strong>Last modification on </strong> <time>${updated}</time></p>
+ %{contentfile}]]></description>
+</item>
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.