-
Notifications
You must be signed in to change notification settings - Fork 0
/
_layout.html.haml
102 lines (88 loc) · 4.1 KB
/
_layout.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
!!! 5
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
<!--[if lt IE 7]> <html lang="en" class="no-js ie6 oldie"> <![endif]-->
<!--[if IE 7]> <html lang="en" class="no-js ie7 oldie"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="no-js ie8 oldie"> <![endif]-->
-# Consider adding an manifest.appcache: h5bp.com/d/Offline
<!--[if gt IE 8]><!-->
%html.no-js{ :lang => "en" }
<!--<![endif]-->
%head
%meta{ :charset => "utf-8" }/
-#
Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/b/378
%meta{ "http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1" }/
%title
%meta{ :name => "description", :content => "" }/
%meta{ :name => "author", :content => "" }/
-# Mobile viewport optimized: j.mp/bplateviewport
%meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
-# Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons
-# CSS: implied media="all"
-# CSS concatenated and minified via ant build script
%link{:href => "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css", :rel => "stylesheet"}/
%link{:href => "http://fonts.googleapis.com/css?family=Montserrat:700", :rel => "stylesheet", :type => "text/css"}/
%link{ :rel => "stylesheet", :href => "stylesheets/style.css"}/
-#
All JavaScript at the bottom, except for Modernizr / Respond.
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/
%script{ :src => "js/modernizr-2.0.6.min.js" }
%body
#container
%header#header
#site-logo
%a{:href => "/home"}
= image_tag "/images/placement/logo.png", :class => "logo-main"
.nav-toggle
%span
.mini-cart.clearfix
%h5
%a{:href => "/cart"}
%span.cart-quantity
%i.fa.fa-shopping-cart
1
%span.cart-total $249.00
.site-nav
%nav#primary
%ul
%li= link_to "Mens", "products"
%li= link_to "Womens", "bags"
%li= link_to "Sale", "lookbook"
%li= link_to "Lookbook", "home"
%nav#secondary
%ul
%li= link_to "About", "about"
%li= link_to "Shipping Info", "about.html"
%li= link_to "Blog", "blog2"
%li= link_to "Contact", "contact"
#main{ :role => 'main' }
= yield
%footer
-# end of #container
-# Javascript at the bottom for fast page loading
-# Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline
%script{ :src => "//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" }
%script
window.jQuery || document.write("<script src='js/jquery-1.6.2.min.js'>\x3C/script>")
-# scripts concatenated and minified via ant build script
%script{ :src => "js/plugins.js" }
%script{ :src => "js/jquery.affix.js" }
%script{ :src => "js/script.js" }
-# end scripts
-# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
-# change the UA-XXXXX-X to be your site's ID
%script
var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"],["_trackPageLoadTime"]];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));
-#
Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
chromium.org/developers/how-tos/chrome-frame-getting-started
<!--[if lt IE 7]>
%script{ :src => "//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js" }
%script
window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})});
<![endif]-->