2015-09-14 21:03:09 +00:00
|
|
|
{{ define "content" }} {{ with .Body }}
|
2015-09-13 11:14:18 +00:00
|
|
|
|
2015-09-15 13:00:14 +00:00
|
|
|
<main class="editor">
|
2015-09-15 18:26:18 +00:00
|
|
|
<form method="POST" action="">
|
2015-09-16 20:48:08 +00:00
|
|
|
<div class="sidebar scroll data">
|
2015-09-15 13:00:14 +00:00
|
|
|
<h2>Metadata</h2>
|
|
|
|
{{ template "frontmatter" .FrontMatter }}
|
|
|
|
</div>
|
2015-09-13 19:37:20 +00:00
|
|
|
|
2015-09-15 18:26:18 +00:00
|
|
|
<div class="container data">
|
|
|
|
<textarea name="content" class="scroll">{{ .Content }}</textarea>
|
|
|
|
<div id="preview-area" class="scroll hidden"></div>
|
2015-09-15 13:00:14 +00:00
|
|
|
</div>
|
2015-09-15 10:59:48 +00:00
|
|
|
|
2015-09-15 13:00:14 +00:00
|
|
|
<div class="action-bar">
|
|
|
|
<button id="preview" class="left">Preview</button>
|
2015-09-17 14:38:04 +00:00
|
|
|
<input type="submit" data-message="Post saved." data-regenerate="false" value="Save">
|
|
|
|
<input type="submit" data-message="Post published successfully." data-regenerate="true" class="default" value="Publish">
|
2015-09-15 13:00:14 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</main>
|
2015-09-15 10:59:48 +00:00
|
|
|
|
|
|
|
{{ end }} {{ end }}
|