aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-24 10:39:17 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-24 10:39:17 +0100
commit1233c89b66f4e4a8a8aa219921af145ea9996dc9 (patch)
tree0d541c09cf4cf183e78b50c15da80249ffc4772c /tmpl
parent1c189a12023060a247215073dc1e79cabf86071d (diff)
Move title to the right
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}}