aboutsummaryrefslogtreecommitdiff
path: root/tmpl/root
blob: f8dc03034593186071d4badfa21ad3fd4b397d7e (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
{{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'>
	<style>
		body {
			font-family: 'Abel', sans-serif;
			margin: 5% 10%;
		}
		h1 {
			font-family: 'Raleway', sans-serif;
			color: #F50;
		}
		pre {
			font-family: 'Anonymous Pro', monospace;
		}
		a {
			color: #05A;
			text-decoration: none;
		}
	</style>
</head>
<body>
<section>
<header>
<h1>{{template "title" .}}</h1>
<nav>
	<a href="/">root</a>
	<a href="/index">index</a>
	{{with .Title}}<a href="/edit/{{.}}">edit</a>{{end}}
	{{with .Title}}<a href="/del/{{.}}">delete</a>{{end}}
</nav>
</header>
{{template "content" .}}
</section>
</body>
</html>
{{end}}