I think this will fix the meta tags (#1030)
This commit is contained in:
parent
5302f03196
commit
7b5bd53c28
1 changed files with 3 additions and 1 deletions
|
@ -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" %>
|
||||
|
|
Loading…
Reference in a new issue