-
Notifications
You must be signed in to change notification settings - Fork 2
/
layout.haml
48 lines (37 loc) · 1.46 KB
/
layout.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
!!! 5
/[if lt IE 7]<html class="no-js ie6" lang="en">
/[if IE 7]<html class="no-js ie7" lang="en">
/[if IE 8]<html class="no-js ie8" lang="en">
/[if (gte IE 9)|!(IE)]<!--><html class="no-js" lang="en">
%head
%meta{ :charset => "utf-8" }
/ Always force latest IE rendering engine (even in intranet) & Chrome Frame
%meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }
/ set the viewport for mobile devices
%meta{ :name => 'viewport', :content => 'width=device-width, initial-scale=1.0' }
= yield_content :head
%body{ :class => page_classes }
#container
%header
= partial "header"
#main{ :role => 'main' }
= yield
%footer
= partial "footer"
/ ! end of #container
/ Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary
%script{ :src => '//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js' }
%script
window.jQuery || document.write("<script src='js/libs/jquery-1.6.2.min.js'>\x3C/script>")
/ js scripts
= javascript_include_tag "plugins.js"
= javascript_include_tag "script.js"
/[if lt IE 7]
= javascript_include_tag "libs/DD_belatedPNG_0.0.8a-min.js"
%script
DD_belatedPNG.fix("img, .png_bg");
/ CSS: implied media="all"
= stylesheet_link_tag "style.css"
= stylesheet_link_tag "site.css"
/All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects
= javascript_include_tag "libs/modernizr-2.0.6.min.js"