]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Add opensearch to RSS and ATOM feeds 719/head
authorArthurHoaro <arthur@hoa.ro>
Fri, 16 Dec 2016 13:03:42 +0000 (14:03 +0100)
committerArthurHoaro <arthur@hoa.ro>
Tue, 3 Jan 2017 08:57:19 +0000 (09:57 +0100)
Fixes #709

tpl/feed.atom.html
tpl/feed.rss.html

index ad7dd9357db2714d27014873711f68e814761b25..49798e8576998c919f4bf10d78a9b236a88a57d7 100644 (file)
@@ -6,6 +6,8 @@
     <updated>{$last_update}</updated>
   {/if}
   <link rel="self" href="{$self_link}#" />
+  <link rel="search" type="application/opensearchdescription+xml" href="{$index_url}?do=opensearch#"
+             title="Shaarli search - {$shaarlititle}" />
   {loop="$feed_plugins_header"}
     {$value}
   {/loop}
index 73791f639ffc1a6a92bbf6e145f5efed74e4cae1..ee3fef880de3b7e931d4f04968d4cb3ca0403706 100644 (file)
@@ -8,6 +8,8 @@
     <copyright>{$index_url}</copyright>
     <generator>Shaarli</generator>
     <atom:link rel="self" href="{$self_link}"  />
+    <atom:link rel="search" type="application/opensearchdescription+xml" href="{$index_url}?do=opensearch#"
+               title="Shaarli search - {$shaarlititle}" />
     {loop="$feed_plugins_header"}
       {$value}
     {/loop}