frontmatter parsing better; edit not working

This commit is contained in:
Henrique Dias committed 2015-09-14 22:03:09 +01:00
1 parent 3b0d8380cb
commit 234e2a1ec4
7 files changed
+161 -110

No files matched your search

+3 -5
View File
@@ -1,16 +1,14 @@
{{ define "content" }}
{{ with .Body }}
{{ define "content" }} {{ with .Body }}
<div class="content">
<h1>Editing {{ .Name }}</h1>
<form method="POST" action="">
{{ template "frontmatter" .FrontMatter }}
<textarea name="content">{{ .Content }}</textarea>
<input type="submit" value="Save">
</form>
</div>
{{ end }}
{{ end }}
{{ end }} {{ end }}