-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_layout.jade
57 lines (55 loc) · 2.42 KB
/
_layout.jade
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
doctype
//if lt IE 9
<html class="ie">
// [if gte IE 9]><!
html(lang="en")
// <![endif]
head
meta(charset="utf-8")
title !{ typeof(public._data[current.path[0]])!=='undefined' && typeof(public._data[current.path[0]].title)!=='undefined' ? public._data[current.path[0]].title + ' – ' + name : name + ' – ' + tagline }
meta(charset="utf-8")
meta(name="description", content="#{ typeof(public._data[current.path[0]])!=='undefined' && typeof(public._data[current.path[0]].description)!=='undefined' ? public._data[current.path[0]].description : description }")
meta(name="keywords", content="#{ typeof(public._data[current.path[0]])!=='undefined' && typeof(public._data[current.path[0]].keywords)!=='undefined' ? public._data[current.path[0]].keywords : keywords }")
meta(name="handheldfriendly", content="true")
meta(name="mobileoptimized", content="320")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(http-equiv="cleartype", content="on")
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")
//if lt IE 10
script(src="https://html5shiv.googlecode.com/svn/trunk/html5.js")
// [if gte IE 9]><!
!= partial("_shared/typekit")
// <![endif]
link(rel="stylesheet", href="/css/main.css", type="text/css")
body(class="#{ current.path[0] }")
.container
!= partial("_shared/header")
#main.main(role="main")
//- If it’s an index template, show it.
//- If it’s a page in the root, wrap it in _nest.jade
//- If it’s a page in a folder, wrap it in that folder’s nest
if current.path[current.path.length - 1] === 'index'
!= yield
else if current.path.length === 1
!= yield
//- != partial("/_nest.jade", { yield: yield })
else
!= partial(current.path[0] + "/_nest.jade", { yield: yield })
.container
.nav--footer#nav-bottom
!= partial("_shared/nav")
.main-container
!= partial("_shared/footer")
script(src="/js/main.js")
if service.analytics
script.
//<![CDATA[
var _gaq = [['_setAccount', '#{ service.analytics }'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
//]]>