2 def opengraph_tags(title = nil)
4 "og:site_name" => t("layouts.project_name.title"),
5 "og:title" => [t("layouts.project_name.title"), title].compact.join(" | "),
6 "og:type" => "website",
7 "og:image" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "http"),
8 "og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https"),
9 "og:url" => url_for(:host => SERVER_URL)
12 tags.map do |property, content|
13 tag(:meta, :property => property, :content => content)
14 end.join("").html_safe