]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_meta.html.erb
Pass properties hash to OpenGraph helper
[rails.git] / app / views / layouts / _meta.html.erb
index 37afbb89498e5cc67a2e101a17c4e83d312bc62f..822238894c287b4e80c56c37ff9eae3898f3fb3f 100644 (file)
@@ -21,7 +21,7 @@
 <% end -%>
 <%= 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(@title, @og_image) %>
+<%= opengraph_tags(@title, "og:image" => @og_image, "og:image:alt" => @og_image_alt) %>
 <% if flash[:matomo_goal] -%>
 <%= tag.meta :name => "matomo-goal", :content => flash[:matomo_goal] %>
 <% end -%>