]> git.openstreetmap.org Git - rails.git/commitdiff
Pass title to opengraph routine
authorTom Hughes <tom@compton.nu>
Thu, 5 Nov 2015 11:44:08 +0000 (11:44 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 5 Nov 2015 11:44:08 +0000 (11:44 +0000)
app/views/layouts/_head.html.erb

index bd2ad441d22390b1f6ce5a236212f4e48043ebc8..118100df62a178980cac212e955df1140f618196 100644 (file)
@@ -26,7 +26,7 @@
   <%= tag("link", { :rel => "publisher", :href => "https://plus.google.com/111953119785824514010" }) %>
   <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") }) %>
   <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
-  <%= opengraph_tags %>
+  <%= opengraph_tags(@title) %>
   <% if flash[:piwik_goal] -%>
   <%= tag("meta", :name => "piwik-goal", :content => flash[:piwik_goal]) %>
   <% end -%>