From c6d876bb2afe7e9ec1a64c74e766360e2fa441e0 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 3 Aug 2016 09:45:28 +0200 Subject: Set updated date for items in feeds RSS doesn't support updated date for items, so we use the ATOM extension. Updated dates also bump the global update --- tpl/feed.atom.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl/feed.atom.html') diff --git a/tpl/feed.atom.html b/tpl/feed.atom.html index 2ebb162a..1932f507 100644 --- a/tpl/feed.atom.html +++ b/tpl/feed.atom.html @@ -27,7 +27,8 @@ {/if} {$value.guid} {if="$show_dates"} - {$value.iso_date} + {$value.pub_iso_date} + {$value.up_iso_date} {/if} -- cgit v1.2.3 From dec5fe9c6973054a1301982f910de86a19502b55 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 16 Oct 2016 17:41:08 +0200 Subject: Cleanup: explicitely loop over PHP variables in templates Relates to https://github.com/shaarli/Shaarli/issues/613 Before: {loop="someVariable"} After: {loop="$someVariable"} Signed-off-by: VirtualTam --- tpl/feed.atom.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/feed.atom.html') diff --git a/tpl/feed.atom.html b/tpl/feed.atom.html index 1932f507..40fd421a 100644 --- a/tpl/feed.atom.html +++ b/tpl/feed.atom.html @@ -17,7 +17,7 @@ {$index_url} Shaarli - {loop="links"} + {loop="$links"} {$value.title} {if="$usepermalinks"} -- cgit v1.2.3 From 1d2cef8aefe62f93a71d43d9288a49d4b350484e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 2 Dec 2016 18:37:41 +0100 Subject: Remove new line between content tag and CDATA in ATOM feed Content not starting directly with CDATA can be misinterpreted by some feed parsers. --- tpl/feed.atom.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tpl/feed.atom.html') diff --git a/tpl/feed.atom.html b/tpl/feed.atom.html index 40fd421a..aead0459 100644 --- a/tpl/feed.atom.html +++ b/tpl/feed.atom.html @@ -30,9 +30,7 @@ {$value.pub_iso_date} {$value.up_iso_date} {/if} - - - + {loop="$value.taglist"} {/loop} -- cgit v1.2.3