aboutsummaryrefslogtreecommitdiff
path: root/tmpl/root
blob: 250f751d43c1732fe3ca3778366f6e8e2b158f77 (plain)
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
{{define "root"}}
<!DOCTYPE html>
<html>
<head>
	<title>{{template "title" .}}</title>
	<link href='http://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
	<link href='http://fonts.googleapis.com/css?family=Anonymous+Pro' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

	<style>
		body {
			font-family: 'Abel', sans-serif;
			margin: 5% 10%;
		}
		h1, h4 {
			font-family: 'Raleway', sans-serif;
		}
		h1 {
			color: #F50;
		}
		pre {
			font-family: 'Anonymous Pro', monospace;
		}
		a {
			color: #05A;
			text-decoration: none;
		}
		nav {
			float: right;
		}
		nav a {
			padding: 1ex;
		}
	</style>
</head>
<body>
<section>
<header>
<h1>{{template "title" .}}</h1>
<nav>
	<a href="/"><i class="fa fa-home"></i></a>
	<a href="/index"><i class="fa fa-list"></i></a>
	{{with .Title}}
	<a href="/edit/{{.}}"><i class="fa fa-pencil"></i></a>
	<a href="/del/{{.}}"><i class="fa fa-trash"></i></a>
	{{end}}
</nav>
</header>
{{template "content" .}}
</section>
</body>
</html>
{{end}}