mirror of https://github.com/jlelse/GoBlog
31 lines
887 B
Plaintext
31 lines
887 B
Plaintext
{{ define "title" }}
|
|
<title>{{ mdtitle .Blog.Title }}</title>
|
|
{{ include "postheadmeta" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main class=h-entry>
|
|
<article>
|
|
<data class="u-url hide" value="{{ absolute .Data.Path }}"></data>
|
|
{{ if .Data.Content }}
|
|
<div class=e-content>
|
|
{{ content .Data false }}
|
|
</div>
|
|
{{ end }}
|
|
</article>
|
|
{{ include "author" . }}
|
|
</main>
|
|
{{ if .LoggedIn }}
|
|
<div id="posteditactions" class="p">
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
|
|
<input type="hidden" name="editoraction" value="loadupdate">
|
|
<input type="hidden" name="path" value="{{ .Data.Path }}">
|
|
<input type="submit" value="{{ string .Blog.Lang "update" }}">
|
|
</form>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "statichome" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |