2020-12-23 15:53:10 +00:00
|
|
|
{{ define "title" }}
|
2021-08-04 21:26:38 +00:00
|
|
|
<title>{{ mdtitle .Blog.Title }}</title>
|
2020-12-23 15:53:10 +00:00
|
|
|
{{ 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>
|
2021-07-19 14:32:45 +00:00
|
|
|
{{ content .Data false }}
|
2020-12-23 15:53:10 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
|
|
|
{{ include "author" . }}
|
|
|
|
</main>
|
2021-10-24 15:41:08 +00:00
|
|
|
{{ if .LoggedIn }}
|
|
|
|
<div id="posteditactions" class="p">
|
|
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
|
|
|
|
<input type="hidden" name="editoraction" value="loadupdate">
|
2021-10-24 16:02:07 +00:00
|
|
|
<input type="hidden" name="path" value="{{ .Data.Path }}">
|
2021-10-24 15:41:08 +00:00
|
|
|
<input type="submit" value="{{ string .Blog.Lang "update" }}">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2020-12-23 15:53:10 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "statichome" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|