GoBlog/templates/statichome.gohtml

27 lines
839 B
Plaintext
Raw Normal View History

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>{{ content .Data false }}</div>{{ end }}
2020-12-23 15:53:10 +00:00
</article>
{{ author }}
2020-12-23 15:53:10 +00:00
</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">
2021-10-24 16:02:07 +00:00
<input type="hidden" name="path" value="{{ .Data.Path }}">
<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 }}