-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShell13Q.jade
107 lines (83 loc) · 3.25 KB
/
Shell13Q.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
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
103
104
105
106
107
doctype html
html(lang=language)
head
title #{title}
meta(charset='utf-8')
meta(name='description', content=description)
meta(name='keywords', content=keywords)
meta(name='robots', content='index,follow')
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='shortcut icon' href='/' + pathPrefix + 'favicon.ico?v=2')
- if (language === baseLanguage)
link(rel='stylesheet', href='style/main.css', media='all')
//link(rel='stylesheet', href='style/print.css', media='print')
<!-- [if lt IE 9]>
<script src='javascript/html5.js'></script>
<![endif]-->
- else
link(rel='stylesheet', href='../style/main.css', media='all')
//link(rel='stylesheet', href='../style/print.css', media='print')
<!-- [if lt IE 9]>
<script src='../javascript/html5.js'></script>
<![endif]-->
script.
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44399668-1', 'auto');
ga('send', 'pageview');
body
// Navigation
nav(id='nav-main')
div(class='tag') Language:
span(class='current-language')
ul(id='nav-languages')
- each lang in languages
li(class=lang.id === language ? 'active' : '')
- if (lang.id === baseLanguage)
a(href= '/' + pathPrefix, title=lang.title) #{lang.native}
- else
a(href= '/' + pathPrefix + lang.id, title=lang.title) #{lang.native}
ul(id='nav-titles')
- each section in navigation
li(class='nav-' + section.link)
a(href='#' + section.link)!=section.article.title
// Navigation-button
div(id='nav-bar')
div(id='nav-button')
svg(class='menu-icon', width='30', height='20', viewPort='0 0 20 20', version='1.1', xmlns='http://www.w3.org/2000/svg')
rect(x='0', y='0', width='30', height='4')
rect(x='0', y='8', width='30', height='4')
rect(x='0', y='16', width='30', height='4')
// header
header
h1 <span>~$</span> echo "<span class="title">#{title}</span>"
//Sections
div(id='content')
- each section in sections
article(id=section.link)
h1!=section.article.title
a(href=section.sourceURL) #
section!=section.article.content
//Footer
footer
p
| Built with
a(href='http://nodejs.org/') Node.js
| using a
a(href='http://jade-lang.com/') jade
| template.
| Hosted by
a(href='http://https://github.com/') Github
|.
a(href='https://github.com/ververcpp/Shell13Q') Fork
| me on Github.
- if (language === baseLanguage)
script(src='javascript/jquery.min.js')
script(src='javascript/prettify.js')
script(src='javascript/main.js')
- else
script(src='../javascript/jquery.min.js')
script(src='../javascript/prettify.js')
script(src='../javascript/main.js')