add meta tags to maps (#1028)
This commit is contained in:
parent
cbc38e0c93
commit
f64612f99b
1 changed files with 11 additions and 0 deletions
|
@ -15,6 +15,17 @@
|
|||
<title><%= yield(:title) %></title>
|
||||
<%= csrf_meta_tags %>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
|
||||
<% if controller == 'maps' && @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 name="twitter:title" content="<%= @map.title %>" />
|
||||
<meta name="twitter:image" content="<%= @map.screenshot_url %>" />
|
||||
<meta name="twitter:description" content="<%= @map.desc %>" />
|
||||
<% end %>
|
||||
|
||||
<%= stylesheet_link_tag "application", :media => "all" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
|
|
Loading…
Reference in a new issue