cartodb-4.42/app/views/layouts/application_public_visualization_layout.html.erb

43 lines
1.9 KiB
Plaintext
Raw Normal View History

2024-04-06 13:25:13 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<%= favicon_link_tag "favicons/favicon.ico" %>
<title><%= yield :title %></title>
<meta name="description" content="<%= yield :description %>">
<meta name="keywords" content="<%= @visualization.name.gsub(/ /,", ").gsub(/_/,", ") %>, datasets, maps, data visualization, spatial data, geospatial, CARTO">
<meta name="author" content="<%= @visualization.user.username %>">
<meta charset='utf-8' />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta property="og:title" content="<%= yield :title %>" />
<meta property="og:site_name" content="CARTO" />
<meta property="og:description" content="<%= yield :description %>" />
<meta property="og:type" content="article" />
<meta property="og:url" content="<%= request.original_url %>" />
<meta property="og:image" content="<%= yield :facebook_card %>">
<% if Cartodb.get_config(:facebook, 'app_id') %>
<meta property="fb:app_id" content="<%= Cartodb.get_config(:facebook, 'app_id') %>" />
<% end %>
<% if Cartodb.get_config(:facebook, 'admins') %>
<meta property="fb:admins" content="<%= Cartodb.get_config(:facebook, 'admins') %>" />
<% end %>
<meta property="article:publisher" content="https://www.facebook.com/cartodb" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@CARTO">
<% unless @twitter_username.nil? %>
<meta name="twitter:creator" "@#{@twitter_username}">
<% end %>
<meta name="twitter:title" content="<%= yield :title %>">
<meta name="twitter:description" content="<%= yield :description %>">
<meta name="twitter:image" content="<%= yield :twitter_card %>">
<%= yield :css %>
<%= insert_google_tag_manager('embeds') %>
</head>
<body class="<%= yield :body_class %>">
<%= insert_google_tag_manager_no_script('embeds') %>
<%= yield :content %>
<%= yield :js %>
</body>
</html>