From be55f6fd7cf1a251c3977f857a44ee2769e39d8b Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 8 Oct 2006 23:57:37 +0000 Subject: * Atom feed support based on a patch by Clint Adams. * Add feeds=no option to inline preprocessor directive to turn off all types of feeds. feeds=rss will still work, and feeds=atom was also added, for fine control. * $IkiWiki::version now holds the program version, and is accessible to plugins. --- templates/atomitem.tmpl | 20 ++++++++++++++++++++ templates/atompage.tmpl | 15 +++++++++++++++ templates/blogpost.tmpl | 5 ++++- templates/feedlink.tmpl | 8 ++++++++ templates/page.tmpl | 2 +- templates/rssitem.tmpl | 2 +- templates/rsslink.tmpl | 5 ----- templates/rsspage.tmpl | 5 ++--- 8 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 templates/atomitem.tmpl create mode 100644 templates/atompage.tmpl create mode 100644 templates/feedlink.tmpl delete mode 100644 templates/rsslink.tmpl (limited to 'templates') diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl new file mode 100644 index 000000000..e0f7bb4f9 --- /dev/null +++ b/templates/atomitem.tmpl @@ -0,0 +1,20 @@ + + <TMPL_VAR TITLE ESCAPE=HTML> + + + + + + + + + + + + + +
+ ![CDATA[]] +
+
+
diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl new file mode 100644 index 000000000..1c672f484 --- /dev/null +++ b/templates/atompage.tmpl @@ -0,0 +1,15 @@ + + + +<TMPL_VAR TITLE ESCAPE=HTML> + + + + + + + +ikiwiki + + + diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl index 1b93adc14..9fbf9a769 100644 --- a/templates/blogpost.tmpl +++ b/templates/blogpost.tmpl @@ -1,7 +1,10 @@
-RSS +RSS + + +Atom diff --git a/templates/feedlink.tmpl b/templates/feedlink.tmpl new file mode 100644 index 000000000..2963156c1 --- /dev/null +++ b/templates/feedlink.tmpl @@ -0,0 +1,8 @@ + diff --git a/templates/page.tmpl b/templates/page.tmpl index e1a55be4a..305e7793b 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -9,7 +9,7 @@ - + diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl index c7e587e1c..bfd38ec31 100644 --- a/templates/rssitem.tmpl +++ b/templates/rssitem.tmpl @@ -12,6 +12,6 @@ - + ]]> diff --git a/templates/rsslink.tmpl b/templates/rsslink.tmpl deleted file mode 100644 index f70c959d6..000000000 --- a/templates/rsslink.tmpl +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl index 4ec143903..38f9b16b3 100644 --- a/templates/rsspage.tmpl +++ b/templates/rsspage.tmpl @@ -1,10 +1,9 @@ - + <TMPL_VAR TITLE ESCAPE=HTML> - + -- cgit v1.2.3