From: John Firebaugh Date: Tue, 13 Aug 2013 23:03:48 +0000 (-0700) Subject: Add an og:image meta tag X-Git-Tag: live~4813 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b8938ea15afc863b212012aa842c3533184157b3?ds=sidebyside Add an og:image meta tag Without this, links to OpenStreetMap.org shared via Facebook default to the ad image. Fixes systemed/iD#1644 --- diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 84f566e81..83f1087dd 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -15,6 +15,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." }) %> + <%= tag("meta", :property => "og:image", :content => image_path("osm_logo.png")) %> <% if flash[:piwik_goal] -%> <%= tag("meta", :name => "piwik-goal", :content => flash[:piwik_goal]) %> <% end -%>