aboutsummaryrefslogtreecommitdiff
path: root/tmpl/root
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/root')
-rw-r--r--tmpl/root27
1 files changed, 27 insertions, 0 deletions
diff --git a/tmpl/root b/tmpl/root
new file mode 100644
index 0000000..ae31e36
--- /dev/null
+++ b/tmpl/root
@@ -0,0 +1,27 @@
+{{define "root"}}
+<!DOCTYPE html>
+<html>
+<head>
+ <title>{{template "title" .}}</title>
+ <link href='http://fonts.googleapis.com/css?family=Raleway|Anonymous+Pro' rel='stylesheet' type='text/css'>
+ <style>
+ body {
+ font-family: 'Raleway', sans-serif;
+ margin: 5% 10%;
+ }
+ pre {
+ font-family: 'Anonymous Pro', monospace;
+ }
+ </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}}</nav>
+</header>
+{{template "content" .}}
+</section>
+</body>
+</html>
+{{end}}