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