/
_page_header.html.erb
26 lines (25 loc) · 1.61 KB
/
_page_header.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<%= meta_tag 'ICBM', this_blog.geourl_location if this_blog.geourl_location.present? %>
<%= meta_tag 'description', @description unless @description.blank? %>
<%= meta_tag 'robots', 'noindex, follow' if stop_index_robots? %>
<%= meta_tag 'google-site-verification', this_blog.google_verification unless this_blog.google_verification.blank?%>
<meta name="generator" content="Publify <%=PUBLIFY_VERSION%>" />
<%= show_meta_keyword %>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<%= url_for :controller => '/xml', :action => 'rsd' %>" />
<%- if feed_atom %>
<link rel="alternate" type="application/atom+xml" title="Atom" href="<%= feed_atom %>" />
<%- end %>
<%- if feed_rss %>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<%= feed_rss %>" />
<%- end %>
<%= javascript_include_tag 'jquery', 'jquery_ujs', 'cookies', 'publify', 'gritter', :cache => true %>
<%= stylesheet_link_tag 'coderay', 'user-styles', 'gritter', :cache => true %>
<%= javascript_include_tag "lang/#{Localization.lang.to_s}" if File.exists? File.join(::Rails.root.to_s, 'public', 'lang', Localization.lang.to_s) %>
<%= javascript_tag "window._token = '#{form_authenticity_token}'"%>
<%= page_header_includes %>
<%= use_canonical if this_blog.use_canonical_url %>
<script type="text/javascript"><%= @content_for_script %></script>
<%= this_blog.custom_tracking_field unless this_blog.custom_tracking_field.blank? %>
<%= google_analytics %>
<%= meta_tag 'og:site_name', this_blog.blog_name %>
<%= meta_tag 'og:title', @article ? @article.title : @page_title %>