2016-06-23 22:21:44 +00:00
|
|
|
{{ define "content" }}
|
2016-06-25 20:57:10 +00:00
|
|
|
<div id="editor" class="container" data-kind="{{ .Class }}">
|
2016-06-23 22:21:44 +00:00
|
|
|
<form method="POST" action="./">
|
|
|
|
{{ if or (eq .Class "frontmatter-only") (eq .Class "complete") }}
|
|
|
|
<div class="frontmatter">
|
|
|
|
{{ template "blocks" .FrontMatter }}
|
|
|
|
<button class="add">Add field</button>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if or (eq .Class "content-only") (eq .Class "complete") }}
|
2016-06-27 11:19:40 +00:00
|
|
|
|
|
|
|
{{ if (eq .Class "complete")}}<h3>Body</h3>{{ end }}
|
2016-06-23 22:21:44 +00:00
|
|
|
<div class="content">
|
2016-06-25 20:57:10 +00:00
|
|
|
<div id="editor-source" data-mode="{{ .Mode }}"></div>
|
2016-06-23 22:21:44 +00:00
|
|
|
<textarea name="content">{{ .Content }}</textarea>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<input type="submit" data-type="{{ .Class }}" value="Save">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|