diff options
Diffstat (limited to 'templates/atom_content.xml')
-rw-r--r-- | templates/atom_content.xml/footer.xml | 1 | ||||
-rw-r--r-- | templates/atom_content.xml/header.xml | 8 | ||||
-rw-r--r-- | templates/atom_content.xml/item.xml | 15 |
3 files changed, 24 insertions, 0 deletions
diff --git a/templates/atom_content.xml/footer.xml b/templates/atom_content.xml/footer.xml new file mode 100644 index 0000000..f2d5538 --- /dev/null +++ b/templates/atom_content.xml/footer.xml @@ -0,0 +1 @@ +</feed> diff --git a/templates/atom_content.xml/header.xml b/templates/atom_content.xml/header.xml new file mode 100644 index 0000000..d42faca --- /dev/null +++ b/templates/atom_content.xml/header.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/item.xml new file mode 100644 index 0000000..6b23a04 --- /dev/null +++ b/templates/atom_content.xml/item.xml @@ -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> |