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.rhtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index c5466964d..ca8904005 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -30,6 +30,9 @@
<link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
<% end %>
<% end %>
+ <% if @has_json %>
+ <link rel="alternate" type="application/json" title="JSON version" href="<%=h main_url(request.request_uri) %>.json">
+ <% end %>
<% if @no_crawl %>
<meta name="robots" content="noindex, nofollow">