aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-08-03 09:45:28 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-03 09:54:57 +0200
commitc6d876bb2afe7e9ec1a64c74e766360e2fa441e0 (patch)
treef1e704d6c937ac6aec8814141cbb2f1e40e5ba88 /tpl
parent9646b7da22c4c6f3419bfe51431720dd622374d8 (diff)
downloadShaarli-c6d876bb2afe7e9ec1a64c74e766360e2fa441e0.tar.gz
Shaarli-c6d876bb2afe7e9ec1a64c74e766360e2fa441e0.tar.zst
Shaarli-c6d876bb2afe7e9ec1a64c74e766360e2fa441e0.zip
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
Diffstat (limited to 'tpl')
-rw-r--r--tpl/feed.atom.html3
-rw-r--r--tpl/feed.rss.html3
2 files changed, 4 insertions, 2 deletions
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 @@
27 {/if} 27 {/if}
28 <id>{$value.guid}</id> 28 <id>{$value.guid}</id>
29 {if="$show_dates"} 29 {if="$show_dates"}
30 <updated>{$value.iso_date}</updated> 30 <published>{$value.pub_iso_date}</published>
31 <updated>{$value.up_iso_date}</updated>
31 {/if} 32 {/if}
32 <content type="html" xml:lang="{$language}"> 33 <content type="html" xml:lang="{$language}">
33 <![CDATA[{$value.description}]]> 34 <![CDATA[{$value.description}]]>
diff --git a/tpl/feed.rss.html b/tpl/feed.rss.html
index 26de7f19..4bfe4196 100644
--- a/tpl/feed.rss.html
+++ b/tpl/feed.rss.html
@@ -22,7 +22,8 @@
22 <link>{$value.url}</link> 22 <link>{$value.url}</link>
23 {/if} 23 {/if}
24 {if="$show_dates"} 24 {if="$show_dates"}
25 <pubDate>{$value.iso_date}</pubDate> 25 <pubDate>{$value.pub_iso_date}</pubDate>
26 <atom:modified>{$value.up_iso_date}</atom:modified>
26 {/if} 27 {/if}
27 <description><![CDATA[{$value.description}]]></description> 28 <description><![CDATA[{$value.description}]]></description>
28 {loop="$value.taglist"} 29 {loop="$value.taglist"}