I think this will fix the meta tags (#1030)

This commit is contained in:
Devin Howard 2017-01-11 23:27:05 -05:00 committed by Connor Turland
parent 5302f03196
commit 7b5bd53c28

View file

@ -16,15 +16,17 @@
<%= csrf_meta_tags %>
<meta name="viewport" content="width=device-width, user-scalable=no">
<% if controller == 'maps' && @map %>
<% if controller.class.name == 'MapsController' && @map %>
<meta property="og:title" content="<%= @map.title %>" />
<meta property="og:type" content="website" />
<meta property="og:image" content="<%= @map.screenshot_url %>" />
<meta property="og:description" content="<%= @map.desc %>" />
<meta property="og:url" content="<%= original_url %>" />
<meta name="twitter:title" content="<%= @map.title %>" />
<meta name="twitter:image" content="<%= @map.screenshot_url %>" />
<meta name="twitter:description" content="<%= @map.desc %>" />
<meta name="twitter:url" content="<%= original_url %>" />
<% end %>
<%= stylesheet_link_tag "application", :media => "all" %>