update template

pull/48/head
Henrique Dias 2016-02-06 17:28:10 +00:00
parent 846799dacf
commit 121127ec69
1 changed files with 8 additions and 4 deletions

View File

@ -1,15 +1,21 @@
{{ define "content" }}
<div class="editor {{ .Class }} container">
{{ if eq .Class "complete" }}
<h1><textarea id="site-title">{{ .Name }}</textarea></h1>
{{ end }}
<form method="POST" action="">
<main>
{{ if not (eq .Class "complete") }}
<h1>{{ .Name }}</h1>
<h1 id="site-title">{{ .Name }}</h1>
{{ end }}
{{ if eq .Class "frontmatter-only" }}
<div class="frontmatter blocks">
{{ template "frontmatter" .FrontMatter }}
<p class="actions">
<button class="add">Add field</button>
</p>
</div>
{{ else if eq .Class "content-only" }}
<div class="content">
@ -17,8 +23,6 @@
</div>
{{ else }}
<div class="frontmatter">
<h1><textarea>{{ .Name }}</textarea></h1>
<div class="blocks">
{{ template "frontmatter" .FrontMatter }}
</div>