forked from demiazz/testbed-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.haml
More file actions
68 lines (57 loc) · 2.8 KB
/
template.haml
File metadata and controls
68 lines (57 loc) · 2.8 KB
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
!!! 5
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
<!--[if lt IE 7]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if gt IE 8]><!-->
%html.no-js{ :lang => "en" }
<!--<![endif]-->
%head
%meta{ :charset => "utf-8" }/
-# Always force latest IE rendering engine (even in intranet) & Chrome Frame
-# Remove this if you use the .htaccess
%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"
%link{ :href => "stylesheets/style.css?v=1", :media => "all", :rel => "stylesheet" }/
%link{ :href => "stylesheets/github.css", :media => "all", :rel => "stylesheet" }/
-# All JavaScript at the bottom, except for Modernizr and Respond.
-# Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
%script{ :src => "javascripts/modernizr.min.js" }
%script{ :src => "javascripts/respond.min.js" }
%script{ :src => "javascripts/highlight.pack.js"}
:javascript
hljs.tabReplace = ' ';
hljs.initHighlightingOnLoad();
%body
#container
#page-logo
%img{ :src => 'images/logo.jpg' }
#separator
#page-title
%h1 Интеграция с Яндекс.Страховки
%nav#page-crumbs
%section#page-main{ :role => 'main' }
%nav#page-menu
.clear
%footer#page-footer
-#
Javascript at the bottom for fast page loading
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/jquery.js" }
:javascript
window.jQuery || document.write("<script src='js/jquery.min.js'>\x3C/script>")
%script{ :src => "js/plugins.js?v=1" }
%script{ :src => "js/script.js?v=1" }
-# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
-# change the UA-XXXXX-X to be your site's ID
:javascript
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"));