aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/edit2
-rw-r--r--tmpl/root2
-rw-r--r--tmpl/view4
3 files changed, 3 insertions, 5 deletions
diff --git a/tmpl/edit b/tmpl/edit
index 683567c..2034f47 100644
--- a/tmpl/edit
+++ b/tmpl/edit
@@ -1,4 +1,4 @@
-{{define "title"}}Editing {{.Title}}{{end}}
+{{define "title"}}Edit {{.Title}}{{end}}
{{define "content"}}
<form action="/save/{{.Title}}" method="POST">
<textarea name="body" rows="25" cols="80">{{printf "%s" .Body}}</textarea>
diff --git a/tmpl/root b/tmpl/root
index d9b533c..03659c7 100644
--- a/tmpl/root
+++ b/tmpl/root
@@ -10,7 +10,7 @@
<body>
<section>
<header>
-<h1>{{template "title" .}}</h1>
+<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>
diff --git a/tmpl/view b/tmpl/view
index 24d9b55..68a4c4f 100644
--- a/tmpl/view
+++ b/tmpl/view
@@ -1,4 +1,2 @@
{{define "title"}}{{.Title}}{{end}}
-{{define "content"}}
-{{.HTML}}
-{{end}}
+{{define "content"}}{{.HTML}}{{end}}