|
|
|
@ -1,5 +1,17 @@ |
|
|
|
|
{{ define "body" }} |
|
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
{{ if .Payload.IsDraft }} |
|
|
|
|
<a href="{{ BlogURL "drafts/" }}"> |
|
|
|
|
Back to Drafts |
|
|
|
|
</a> |
|
|
|
|
{{ else }} |
|
|
|
|
<a href="{{ BlogURL "posts/" }}"> |
|
|
|
|
Back to Posts |
|
|
|
|
</a> |
|
|
|
|
{{ end }} |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<form method="POST" action="{{ BlogURL "posts/" }}"> |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
@ -125,18 +137,6 @@ |
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
{{ if .Payload.IsDraft }} |
|
|
|
|
<a href="{{ BlogURL "drafts/" }}"> |
|
|
|
|
Back to Drafts |
|
|
|
|
</a> |
|
|
|
|
{{ else }} |
|
|
|
|
<a href="{{ BlogURL "posts/" }}"> |
|
|
|
|
Back to Posts |
|
|
|
|
</a> |
|
|
|
|
{{ end }} |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
|
{{ template "base.html" . }} |
|
|
|
|