|
1 | 1 | doctype html |
2 | 2 | html(class=html_class) |
3 | | - - base_url = version == cur_version ? "/" : "/" + version + "/" |
| 3 | + - base_url = version == cur_version ? "/" : "/" + version + "/" |
4 | 4 |
|
5 | | - head |
6 | | - meta(charset="UTF-8") |
7 | | - meta( |
8 | | - content="width=device-width, initial-scale=1" |
9 | | - name="viewport" |
10 | | - ) |
| 5 | + head |
| 6 | + meta(charset="UTF-8") |
| 7 | + meta( |
| 8 | + content="width=device-width, initial-scale=1" |
| 9 | + name="viewport" |
| 10 | + ) |
11 | 11 |
|
12 | | - title Ramda Documentation |
| 12 | + title Ramda Documentation |
13 | 13 |
|
14 | | - link( |
15 | | - href=page == "repl" ? "/style.css" : "style.css" |
16 | | - rel="stylesheet" |
17 | | - type="text/css" |
18 | | - ) |
| 14 | + link( |
| 15 | + href=page == "repl" ? "/style.css" : "style.css" |
| 16 | + rel="stylesheet" |
| 17 | + type="text/css" |
| 18 | + ) |
19 | 19 |
|
20 | | - block styles |
| 20 | + block styles |
21 | 21 |
|
22 | | - block scripts |
| 22 | + block scripts |
23 | 23 |
|
24 | | - body |
25 | | - input#open-nav(type="checkbox") |
26 | | - header.navbar.navbar-fixed-top.navbar-inverse.container-fluid |
27 | | - .container-fluid |
28 | | - .navbar-header |
29 | | - label.open-nav(for="open-nav") |
30 | | - span.navbar-brand |
31 | | - strong Ramda |
32 | | - span.version(data-version=`${version}`) |
| 24 | + body(class="light") |
| 25 | + input#open-nav(type="checkbox") |
| 26 | + header.navbar.navbar-fixed-top.navbar-inverse.container-fluid |
| 27 | + .container-fluid |
| 28 | + .navbar-header |
| 29 | + label.open-nav(for="open-nav") |
| 30 | + span.navbar-brand |
| 31 | + strong Ramda |
| 32 | + span.version(data-version=`${version}`) |
33 | 33 |
|
34 | | - ul.nav.navbar-nav.navbar-left |
35 | | - - active = ('home' == page) ? 'active' : '' |
36 | | - - href = base_url |
37 | | - li(class=active): a.home-link(href=href) Home |
| 34 | + ul.nav.navbar-nav.navbar-left |
| 35 | + - active = ('home' == page) ? 'active' : '' |
| 36 | + - href = base_url |
| 37 | + li(class=active): a.home-link(href=href) Home |
38 | 38 |
|
39 | | - - active = ('docs' == page) ? 'active' : '' |
40 | | - - href = base_url + "docs" |
41 | | - li(class=active): a.docs-link(href=href) Documentation |
| 39 | + - active = ('docs' == page) ? 'active' : '' |
| 40 | + - href = base_url + "docs" |
| 41 | + li(class=active): a.docs-link(href=href) Documentation |
42 | 42 |
|
43 | | - - active = ('repl' == page) ? 'active' : '' |
44 | | - - href = "/repl/?v=" + version |
45 | | - li(class=active): a.repl-link(href=href) Try Ramda |
| 43 | + - active = ('repl' == page) ? 'active' : '' |
| 44 | + - href = "/repl/?v=" + version |
| 45 | + li(class=active): a.repl-link(href=href) Try Ramda |
46 | 46 |
|
47 | | - ul.nav.navbar-nav.navbar-right |
48 | | - li: a(href="https://github.com/ramda/ramda") GitHub |
49 | | - li: a(href="https://gitter.im/ramda/ramda") Discuss |
| 47 | + ul.nav.navbar-nav.navbar-right |
| 48 | + li: a(href="#" class="theme-toggle" id="theme-toggle" title="Theme") |
| 49 | + li: a(href="https://github.com/ramda/ramda") GitHub |
| 50 | + li: a(href="https://gitter.im/ramda/ramda") Discuss |
50 | 51 |
|
51 | | - block main |
| 52 | + block main |
52 | 53 |
|
53 | | - script. |
54 | | - window.gitter = { |
55 | | - chat: { |
56 | | - options: { |
57 | | - room: 'ramda/ramda' |
58 | | - } |
59 | | - } |
60 | | - } |
| 54 | + script. |
| 55 | + window.gitter = { |
| 56 | + chat: { |
| 57 | + options: { |
| 58 | + room: 'ramda/ramda' |
| 59 | + } |
| 60 | + } |
| 61 | + } |
61 | 62 |
|
62 | | - script( |
63 | | - async |
64 | | - defer |
65 | | - src="https://sidecar.gitter.im/dist/sidecar.v1.js" |
66 | | - ) |
| 63 | + script( |
| 64 | + async |
| 65 | + defer |
| 66 | + src="https://sidecar.gitter.im/dist/sidecar.v1.js" |
| 67 | + ) |
0 commit comments