Put auto discovery links in the document head.
This commit is contained in:
parent
f6a5d22816
commit
bddb7dd8f9
3 changed files with 6 additions and 0 deletions
|
@ -29,4 +29,7 @@
|
|||
<br />
|
||||
|
||||
<%= rss_link_to :action => 'rss' %>
|
||||
|
||||
<% content_for :head %>
|
||||
<%= auto_discovery_link_tag :atom, :action => 'rss' %>
|
||||
<% end %>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<%= stylesheet_link_tag 'site' %>
|
||||
<%= stylesheet_link_tag 'print', :media => "print" %>
|
||||
<%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
|
||||
<%= yield :head %>
|
||||
<title>OpenStreetMap<%= ' | '+ h(@title) if @title %></title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<h1><%= h(@title) %></h1>
|
||||
|
||||
<% content_for :head do %>
|
||||
<%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue