forked from NixOS/nixos-homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tt
167 lines (144 loc) · 6.51 KB
/
layout.tt
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
[% USE HTML %]
<html lang="en">
<head>
<title>[% title %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script type="text/javascript" src="[% root %]js/jquery.min.js"></script>
<script type="text/javascript" src="[% root %]js/jquery-ui.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="text/javascript" src="[% root %]bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="[% root %]bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="[% root %]bootstrap/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="[% root %]css/nixos-site.css" type="text/css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" />
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<li class="dropdown brand">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">
<img src="[% root %]logo/nix-wiki.png" alt="NixOS" class="logo" />
[% IF menu == 'nix' %]
Nix
[% ELSIF menu == 'nixpkgs' %]
Nixpkgs
[% ELSIF menu == 'nixops' %]
NixOps
[% ELSIF menu == 'disnix' %]
Disnix
[% ELSE %]
NixOS
[% END %]
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="[%root%]">NixOS</a></li>
<li><a href="[%root%]nix">Nix</a></li>
<li><a href="[%root%]nixops">NixOps</a></li>
<li><a href="[%root%]nixpkgs">Nixpkgs</a></li>
<li class="divider"></li>
<li><a href="[%root%]hydra">Hydra</a></li>
<li><a href="[%root%]disnix">Disnix</a></li>
</ul>
</li>
<div class="nav-collapse collapse">
[% IF menu == 'nixos' %]
<ul class="nav pull-left">
<li><a href="[%root%]nixos/about.html">About</a></li>
<li><a href="[%root%]nixos/download.html">Download</a></li>
<li><a href="[%root%]nixos/support.html">Support</a></li>
<li><a href="[%root%]nixos/packages.html">Packages</a></li>
<li><a href="[%root%]nixos/options.html">Options</a></li>
<li><a href="[%root%]nixos/community.html">Community</a></li>
<li><a href="[%wikiMain%]">Wiki</a></li>
</ul>
<ul class="nav pull-right">
<!--
<li><a href="https://github.com/NixOS/nixpkgs"><i class="fa fa-github"></i></a></li>
<li><a href="https://twitter.com/nixos_org"><i class="fa fa-twitter"></i></a></li>
-->
[% ELSIF menu == 'nix' %]
<ul class="nav pull-left">
<li><a href="[%root%]nix/about.html">About</a></li>
<li><a href="[%root%]nix/download.html">Download</a></li>
<li><a href="[%root%]nix/manual/">Manual</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="https://github.com/NixOS/nix"><i class="fa fa-github"></i></a></li>
[% ELSIF menu == 'nixpkgs' %]
<ul class="nav pull-left">
<li><a href="[%root%]nixpkgs/download.html">Download</a></li>
<li><a href="[%root%]nixpkgs/docs.html">Help</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="https://github.com/NixOS/nixpkgs"><i class="fa fa-github"></i></a></li>
[% ELSIF menu == 'nixops' %]
<ul class="nav pull-left">
<li><a href="[%root%]nixops/manual/">Manual</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="https://github.com/NixOS/nixops"><i class="fa fa-github"></i></a></li>
[% ELSIF menu == 'disnix' %]
<ul class="nav pull-left">
<li></li>
<li><a href="[%root%]disnix/docs.html">Documentation</a></li>
<li><a href="[%root%]disnix/extensions.html">Extensions</a></li>
<li><a href="[%root%]disnix/examples.html">Examples</a></li>
<li><a href="[%root%]disnix/download.html">Download</a></li>
<li><a href="[%root%]disnix/support.html">Support</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="https://github.com/svanderburg/disnix"><i class="fa fa-github"></i></a></li>
[% ELSIF menu == 'patchelf' %]
<ul class="nav pull-right">
<li><a href="https://github.com/NixOS/patchelf"><i class="fa fa-github"></i></a></li>
[% ELSE %]
<ul class="nav pull-right">
[% END %]
<form class="navbar-search" method="get" action="https://www.google.com/search">
<input name="q" type="text" class="search-query span2" placeholder="Search nixos.org"/>
<input name="sitesearch" type="hidden" value="nixos.org"/>
</form>
</ul>
</div>
</div>
</div>
</div>
<div class="container main">
[% IF !hideTitle %]
<div class="page-header">
<h1>[% title %]</h1>
</div>
[% END %]
[% content %]
<div class="footer">
<hr />
<center>
<small class="muted">
[% IF modifiedAt %]
Last changed on [% modifiedAt.substr(0, 10) %]
· <a href="https://github.com/NixOS/nixos-homepage/blob/master/[%fileName%]">Page source</a>
· <a href="https://github.com/NixOS/nixos-homepage/edit/master/[%fileName%]">Edit</a>
[% ELSIF sourceLink %]
<a [% HTML.attributes(href => sourceLink) %]>Source</a>
[% END %]
</small>
</center>
</div>
</div>
<script>
$(document).ready(function() {
$(".nixos-popover").popover({});
});
</script>
</body>
</html>