aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts/default.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/default.rhtml')
-rw-r--r--app/views/layouts/default.rhtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index 7d91ae4e6..84bc7afde 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -28,10 +28,13 @@
<% if @feed_autodetect %>
<% for feed in @feed_autodetect %>
<link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
+ <% if feed[:has_json] %>
+ <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
+ <% end %>
<% end %>
<% end %>
<% if @has_json %>
- <link rel="alternate" type="application/json" title="JSON version" href="<%=h main_url(request.request_uri) %>.json">
+ <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
<% end %>
<% if @no_crawl %>