aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-17 00:49:19 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-17 00:49:19 +0100
commitcaf2c67a6eabef6167c9c8007763c78af90a040f (patch)
tree5a978ce24b5de29cd90469ec37f9c64d6867974f
parent45d82515461601d301aefcd95af8c77448ef01a4 (diff)
add back with
-rw-r--r--tmpl/root6
1 files changed, 4 insertions, 2 deletions
diff --git a/tmpl/root b/tmpl/root
index 57117f4..250f751 100644
--- a/tmpl/root
+++ b/tmpl/root
@@ -41,8 +41,10 @@
<nav>
<a href="/"><i class="fa fa-home"></i></a>
<a href="/index"><i class="fa fa-list"></i></a>
- <a href="/edit/{{.Title}}"><i class="fa fa-pencil"></i></a>
- <a href="/del/{{.Title}}"><i class="fa fa-trash"></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" .}}