-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html.tmpl
63 lines (58 loc) · 1.41 KB
/
main.html.tmpl
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ .PageTitle }} - {{ .ProjectName }}</title>
<style>
* {
margin: 0;
}
body {
display: flex;
flex-flow: column;
min-height: 100vh;
}
.content {
flex: 1 1 auto;
height: 1px; /* Fix weird issue where safari/chrome won't expand iframe to fill*/
}
.content.fullsize {
overflow: hidden; /* hide tiny white space below full height content */
}
iframe {
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<div class="navbar-item">
<div>
{{ .ProjectName }}
{{ if ne .ProjectVersion "" }}
<br>
<small>{{ .ProjectVersion }}</small>
{{ end }}
</div>
</div>
</div>
<div class="navbar-menu">
{{ range .Links }}
<a class="navbar-item{{ if (eq $.PageTitle .Title)}} is-active{{end}}" href="{{ .UrlPath }}">{{ .Title }}</a>
{{ end }}
</div>
<div class="navbar-item">
<small>
Generated by kicad-site-generator
version {{ .SelfVersion }}
<br>
on {{ .GeneratedAt }}
</small>
</div>
</nav>
{{ .Content }}
</body>
</html>