aboutsummaryrefslogtreecommitdiff
path: root/tmpl/root
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/root')
-rw-r--r--tmpl/root14
1 files changed, 5 insertions, 9 deletions
diff --git a/tmpl/root b/tmpl/root
index 03659c7..093ad19 100644
--- a/tmpl/root
+++ b/tmpl/root
@@ -8,20 +8,16 @@
<link rel='stylesheet' type='text/css' href='/css/font-awesome.min.css'>
</head>
<body>
-<section>
-<header>
-<p>{{template "title" .}}</p>
<nav>
- <a href="/" title="home"><i class="fa fa-home"></i></a>
- <a href="/index" title="index"><i class="fa fa-list"></i></a>
- {{with .Title}}
+ <span>{{template "title" .}}</span>
+ {{with .Title -}}
<a href="/edit/{{.}}" title="edit {{.}}"><i class="fa fa-pencil"></i></a>
<!--a href="/del/{{.}}" title="delete {{.}}"><i class="fa fa-trash"></i></a-->
- {{end}}
+ {{- end}}
+ <a href="/" title="home"><i class="fa fa-home"></i></a>
+ <a href="/index" title="index"><i class="fa fa-list"></i></a>
</nav>
-</header>
{{template "content" .}}
-</section>
</body>
</html>
{{end}}