]> Git — Sourcephile - comptalang.git/blob - web/templates/default-layout-wrapper.hamlet
Update to new symantic and draft Modules rendition.
[comptalang.git] / web / templates / default-layout-wrapper.hamlet
1 $newline never
2 \<!doctype html>
3 \<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
4 \<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
5 \<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
6 \<!--[if gt IE 8]><!-->
7 <html class="no-js" lang="en"> <!--<![endif]-->
8 <head>
9 <meta charset="UTF-8">
10
11 <title>#{pageTitle pc}
12 <meta name="description" content="">
13 <meta name="author" content="">
14
15 <meta name="viewport" content="width=device-width,initial-scale=1">
16
17 ^{pageHead pc}
18
19 \<!--[if lt IE 9]>
20 \<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
21 \<![endif]-->
22
23 <script>
24 document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js');
25 <body>
26 <div class="container">
27 <header>
28 <div id="main" role="main">
29 ^{pageBody pc}
30 <footer>
31 #{appCopyright $ appSettings master}
32
33 $maybe analytics <- appAnalytics $ appSettings master
34 <script>
35 if(!window.location.href.match(/localhost/)){
36 window._gaq = [['_setAccount','#{analytics}'],['_trackPageview'],['_trackPageLoadTime']];
37 (function() {
38 \ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
39 \ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
40 \ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
41 })();
42 }