frontmatter parsing better; edit not working

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

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 }}