%meta(charset="utf-8") %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1") %title= content_for?(:title) ? yield(:title) : Setting.title %meta{name: 'description', content: content_for?(:description) ? yield(:description) : Setting.description} %meta{name: 'keywords', content: content_for?(:keywords) ? yield(:keywords) : Setting.keywords } %meta{property: 'og:site_name', content: Setting.title } %meta{property: 'og:title', content: content_for?(:title) ? yield(:title) : Setting.title } %meta{property: 'og:description', content: content_for?(:description) ? yield(:description) : Setting.description } %meta{property: 'og:type', content: content_for?(:og_type) ? yield(:og_type) : 'website' } %meta{property: 'og:url', content: content_for?(:og_url) ? yield(:og_url) : request.original_url } %meta{property: 'og:image', content: content_for?(:og_image) ? yield(:og_image) : image_url('logo.png') } = favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' = favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' = favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' = favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' = favicon_link_tag Setting.favicon.data_url || '/favicon.ico', :rel => 'shortcut icon' = csrf_meta_tags -if Rails.env.production? && Setting.google_analytics_id :javascript (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', "#{Setting.google_analytics_id}", 'auto'); ga('send', 'pageview');