24 lines
701 B
Cheetah
24 lines
701 B
Cheetah
{{ define "content" }} {{ with .Body }}
|
|
|
|
<main class="editor">
|
|
<form method="POST" action="">
|
|
<div class="sidebar scroll data">
|
|
<h2>Metadata</h2>
|
|
{{ template "frontmatter" .FrontMatter }}
|
|
</div>
|
|
|
|
<div class="container data">
|
|
<textarea name="content" class="scroll">{{ .Content }}</textarea>
|
|
<div id="preview-area" class="scroll hidden"></div>
|
|
</div>
|
|
|
|
<div class="action-bar">
|
|
<button id="preview" class="left">Preview</button>
|
|
<input type="submit" data-message="Post saved." value="Save">
|
|
<input type="submit" data-message="Post published successfully." class="default" value="Publish">
|
|
</div>
|
|
</form>
|
|
</main>
|
|
|
|
{{ end }} {{ end }}
|