From 56e8ea2089000562533376c9e684303bdb9fdba9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 10 Mar 2016 18:46:07 +0100 Subject: Create a template to handle ATOM feed ATOM feed improvement: * Adds a subtitle to match RSS feed behavior. * Better syntax for categories (see http://edward.oconnor.cx/2007/02/representing-tags-in-atom ). * Use locale to set the language --- tpl/feed.atom.html | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tpl/feed.atom.html (limited to 'tpl') diff --git a/tpl/feed.atom.html b/tpl/feed.atom.html new file mode 100644 index 00000000..2ebb162a --- /dev/null +++ b/tpl/feed.atom.html @@ -0,0 +1,40 @@ + + + {$pagetitle} + Shaared links + {if="$show_dates"} + {$last_update} + {/if} + + {if="!empty($pubsubhub_url)"} + + + + {/if} + + {$index_url} + {$index_url} + + {$index_url} + Shaarli + {loop="links"} + + {$value.title} + {if="$usepermalinks"} + + {else} + + {/if} + {$value.guid} + {if="$show_dates"} + {$value.iso_date} + {/if} + + + + {loop="$value.taglist"} + + {/loop} + + {/loop} + -- cgit v1.2.3 From 5f8e6ebc6ac1c7dff36feadb08f7ac71d5b55ec9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 12 Mar 2016 14:13:41 +0100 Subject: Adds a RSS template file Improvements: * Add searchtags in categories domain URL. * Language is now based on the locale. * Add a generator tag. * self link is always displayed. --- tpl/feed.rss.html | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tpl/feed.rss.html (limited to 'tpl') diff --git a/tpl/feed.rss.html b/tpl/feed.rss.html new file mode 100644 index 00000000..26de7f19 --- /dev/null +++ b/tpl/feed.rss.html @@ -0,0 +1,34 @@ + + + + {$pagetitle} + {$index_url} + Shaared links + {$language} + {$index_url} + Shaarli + + {if="!empty($pubsubhub_url)"} + + + {/if} + {loop="links"} + + {$value.title} + {$value.guid} + {if="$usepermalinks"} + {$value.guid} + {else} + {$value.url} + {/if} + {if="$show_dates"} + {$value.iso_date} + {/if} + + {loop="$value.taglist"} + {$value} + {/loop} + + {/loop} + + -- cgit v1.2.3 From d4542fdb0d15f07810a4bc740bfceaa4189a3604 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 12 Mar 2016 14:48:14 +0100 Subject: Reword the ENABLE_RSS_PERMALINKS in the settings. --- tpl/configure.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/configure.html b/tpl/configure.html index 9c725a51..77c8b7d9 100644 --- a/tpl/configure.html +++ b/tpl/configure.html @@ -22,9 +22,12 @@ - Enable RSS Permalinks + RSS direct links - + + -- cgit v1.2.3