frontmatter parsing better; edit not working
This commit is contained in:
1 parent
3b0d8380cb
commit
234e2a1ec4
7 files changed
+161
-110
No files matched your search
+3
-5
@@ -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 }}
|
||||
Reference in new issue
Block a user