<%- canonical = capture{yield :canonical} if canonical %> <%- end %> > <%= javascript_include_tag "preload_store" %> <%# The fonts are loaded outside of the stylesheet so that we can dynamically change the path. This is to get around CDN caching on the Origin: https://forums.aws.amazon.com/thread.jspa?threadID=114646 %> <%- font_domain = "#{request.protocol}#{request.host_with_port}" %> <%- unless SiteCustomization.override_default_style(session[:preview_style]) %> <%=stylesheet_link_tag "application"%> <%- end %> <%- if mini_profiler_enabled? %> <%- Rack::MiniProfiler.step "stylsheet" do%> <%= stylesheet_link_tag "admin"%> <%-end%> <%- elsif admin? %> <%= stylesheet_link_tag "admin"%> <%-end%> <%=SiteCustomization.custom_stylesheet(session[:preview_style])%> <%=csrf_meta_tags%> <%=SiteCustomization.custom_header(session[:preview_style])%>
<%- if @preloaded.present? %> <%- end %> <%= yield :data %> <%- if mini_profiler_enabled? %> <%- Rack::MiniProfiler.step "application" do %> <%= javascript_include_tag "application" %> <%-end%> <%- Rack::MiniProfiler.step "admin" do %> <%= javascript_include_tag "admin"%> <%-end%> <%- else %> <%= javascript_include_tag "application" %> <%- if admin? %> <%= javascript_include_tag "admin"%> <%- end %> <%- end%> <%= render_google_analytics_code %>