-
Notifications
You must be signed in to change notification settings - Fork 71
/
layout.pug
66 lines (53 loc) · 1.41 KB
/
layout.pug
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
doctype html
html(class=html_class)
- base_url = version == cur_version ? "/" : "/" + version + "/"
head
meta(charset="UTF-8")
meta(
content="width=device-width, initial-scale=1"
name="viewport"
)
title Ramda Documentation
link(
href=page == "repl" ? "/style.css" : "style.css"
rel="stylesheet"
type="text/css"
)
block styles
block scripts
body
input#open-nav(type="checkbox")
header.navbar.navbar-fixed-top.navbar-inverse.container-fluid
.container-fluid
.navbar-header
label.open-nav(for="open-nav")
span.navbar-brand
strong Ramda
span.version(data-version=`${version}`)
ul.nav.navbar-nav.navbar-left
- active = ('home' == page) ? 'active' : ''
- href = base_url
li(class=active): a.home-link(href=href) Home
- active = ('docs' == page) ? 'active' : ''
- href = base_url + "docs"
li(class=active): a.docs-link(href=href) Documentation
- active = ('repl' == page) ? 'active' : ''
- href = "/repl/?v=" + version
li(class=active): a.repl-link(href=href) Try Ramda
ul.nav.navbar-nav.navbar-right
li: a(href="https://github.com/ramda/ramda") GitHub
li: a(href="https://gitter.im/ramda/ramda") Discuss
block main
script.
window.gitter = {
chat: {
options: {
room: 'ramda/ramda'
}
}
}
script(
async
defer
src="https://sidecar.gitter.im/dist/sidecar.v1.js"
)