/
_head.html.haml
69 lines (57 loc) · 3.34 KB
/
_head.html.haml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%head
%meta{charset: "utf-8"}
-# Prefetch...
-# %link{rel: "dns-prefetch", href: "//fonts.googleapis.com"}
-# %link{rel: "dns-prefetch", href: "//use.typekit.com"}
-# For more prefetch options see more_meta_tag_options.txt (in project root directory).
%meta{"http-equiv" => "x-ua-compatible", content: "ie=edge"}
-# Explanation...
-# https://github.com/h5bp/html5-boilerplate/blob/master/dist/doc/html.md#x-ua-compatible
-# Can setup in application.rb as follows:
-# http://chriszetter.com/blog/2013/10/04/setting-headers-in-rails-4/
-# config.action_dispatch.default_headers.merge!('X-UA-Compatible' => 'IE=edge')
%title= content_for?(:title) ? yield(:title) : "XXX"
-# Alternative title format.
-# %title= content_for?(:title) ? ("XXX - " + yield(:title)) : "XXX"
%meta{name: "description", content: ""}
-# For better search engine result page descriptions use the following:
-# - if content_for?(:description_tag)
-# %meta{name: "description", content: yield(:description_tag).strip}
-# - else
-# %meta{name: "description", content: "XXX"}
%meta{property: "og:locale", content: "en_US"}
%meta{property: "og:type", content: "website"}
%meta{property: "og:url", content: ""}
%meta{property: "og:site_name", content: ""}
%meta{property: "og:title", content: ""}
%meta{property: "og:description", content: ""}
%meta{property: "fb:admins", content: "name@domain.com"}
%meta{property: "og:image", content: "location_url"}
%meta{name: "twitter:card", content: "summary"}
%meta{name: "twitter:site", content: "@site_account"}
%meta{name: "twitter:url", content: "http://www.example.com/path/to/page.html"}
%meta{name: "twitter:title", content: ""}
%meta{name: "twitter:description", content: ""}
%meta{name: "twitter:image", content: "http://www.example.com/path/to/image.jpg"}
%meta{name: "twitter:creator", content: "@individual_account"}
%meta{itemprop: "name", content: ""}
%meta{itemprop: "url", content: ""}
%meta{itemprop: "description", content: ""}
-# For more meta tag options see more_meta_tag_options.txt (in project root directory).
-# %meta{name: "viewport", content: "width=device-width, initial-scale=1"}
-# Explanation...
-# https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html#//apple_ref/doc/uid/TP40006509-SW26
= favicon_link_tag '/favicon.ico'
-# %link{href: "animated_favicon.gif", rel: "icon", type: "image/gif"}
= favicon_link_tag '/apple-touch-icon.png', rel: 'apple-touch-icon', type: 'image/png'
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
-# For production customize modernizr at: http://www.modernizr.com/download/
= javascript_include_tag 'modernizr-2.8.3.min'
-# Google Web Fonts combination idea. Delete if you do not use.
%link{href: "http://fonts.googleapis.com/css?family=Droid+Serif", rel: "stylesheet", type: "text/css"}
%link{href: "http://fonts.googleapis.com/css?family=Droid+Sans", rel: "stylesheet", type: "text/css"}
-# Typekit script. Delete if you do not use.
-# %script{src: '//use.typekit.net/XXX.js', type: 'text/javascript'}
-# :javascript
-# try{Typekit.load();}catch(e){}
= csrf_meta_tags