Skip to content

Instantly share code, notes, and snippets.

@coetry
Created February 15, 2015 00:52
Show Gist options
  • Save coetry/19756a90a64ba657600a to your computer and use it in GitHub Desktop.
Save coetry/19756a90a64ba657600a to your computer and use it in GitHub Desktop.
<meta charset='<%= Rails.application.config.encoding %>' />
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
<title><%= browser_title(yield(:title)) %></title>
<%= raw %(<meta name="description" content="#{@meta.meta_description}" />) if @meta.meta_description.present? -%>
<%= raw %(<link rel="canonical" href="#{request.protocol}#{request.host_with_port}#{@canonical}" />) if @canonical.present? -%>
<%= csrf_meta_tags if Refinery::Core.authenticity_token_on_frontend -%>
<%= html_import_tag 'application' %>
<%= yield :meta %>
<%= stylesheet_link_tag "application" %>
<%= yield :stylesheets %>
<%= render '/refinery/google_analytics' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment