2020-07-31 13:48:01 +00:00
|
|
|
{{ define "title" }}
|
2021-08-05 06:09:34 +00:00
|
|
|
<title>{{ with .Data.RenderedTitle }}{{ . }} - {{end}}{{ mdtitle .Blog.Title }}</title>
|
2020-11-01 17:37:21 +00:00
|
|
|
{{ include "postheadmeta" . }}
|
2020-12-22 21:15:29 +00:00
|
|
|
{{ with shorturl .Data }}<link rel="shortlink" href="{{ . }}">{{ end }}
|
2020-07-31 13:48:01 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main class=h-entry>
|
|
|
|
<article>
|
2020-11-01 17:37:21 +00:00
|
|
|
<data class="u-url hide" value="{{ absolute .Data.Path }}"></data>
|
2021-08-05 06:09:34 +00:00
|
|
|
{{ with .Data.RenderedTitle }}<h1 class=p-name>{{ . }}</h1>{{ end }}
|
2020-11-01 17:37:21 +00:00
|
|
|
{{ include "postmeta" . }}
|
|
|
|
{{ include "postactions" . }}
|
|
|
|
{{ if .Data.Content }}
|
2020-11-03 17:00:03 +00:00
|
|
|
{{ include "oldcontentwarning" . }}
|
2020-11-01 17:37:21 +00:00
|
|
|
<div class=e-content>
|
2021-07-19 14:32:45 +00:00
|
|
|
{{ content .Data false }}
|
2020-11-01 17:37:21 +00:00
|
|
|
</div>
|
2020-09-01 17:08:57 +00:00
|
|
|
{{ end }}
|
2020-11-01 17:37:21 +00:00
|
|
|
{{ include "posttax" . }}
|
|
|
|
</article>
|
|
|
|
{{ include "author" . }}
|
2020-07-31 13:48:01 +00:00
|
|
|
</main>
|
2021-02-24 15:01:10 +00:00
|
|
|
{{ if .LoggedIn }}
|
2021-06-24 17:09:59 +00:00
|
|
|
<div id="posteditactions" class="p">
|
2021-06-18 12:32:03 +00:00
|
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#update">
|
2021-02-24 15:01:10 +00:00
|
|
|
<input type="hidden" name="editoraction" value="loadupdate">
|
2021-10-24 16:02:07 +00:00
|
|
|
<input type="hidden" name="path" value="{{ .Data.Path }}">
|
2021-02-24 15:01:10 +00:00
|
|
|
<input type="submit" value="{{ string .Blog.Lang "update" }}">
|
|
|
|
</form>
|
2021-09-02 06:57:24 +00:00
|
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}">
|
|
|
|
<input type="hidden" name="action" value="delete">
|
2021-02-24 15:01:10 +00:00
|
|
|
<input type="hidden" name="url" value="{{ .Canonical }}">
|
2021-09-02 06:57:24 +00:00
|
|
|
<input type="submit" value="{{ string .Blog.Lang "delete" }}" class="confirm" data-confirmmessage="{{ string .Blog.Lang "confirmdelete" }}">
|
2021-02-24 15:01:10 +00:00
|
|
|
</form>
|
2021-09-07 20:16:28 +00:00
|
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}">
|
|
|
|
<input type="hidden" name="editoraction" value="tts">
|
|
|
|
<input type="hidden" name="url" value="{{ .Canonical }}">
|
|
|
|
<input type="submit" value="{{ string .Blog.Lang "gentts" }}">
|
|
|
|
</form>
|
2021-09-02 06:57:24 +00:00
|
|
|
<script defer src="{{ asset "js/formconfirm.js" }}"></script>
|
2021-02-24 15:01:10 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-04-21 18:17:26 +00:00
|
|
|
{{ if .CommentsEnabled }}
|
2021-01-23 16:24:47 +00:00
|
|
|
{{ include "interactions" . }}
|
|
|
|
{{ end }}
|
2020-07-31 19:02:47 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2020-08-05 17:14:10 +00:00
|
|
|
{{ define "post" }}
|
2020-07-31 19:02:47 +00:00
|
|
|
{{ template "base" . }}
|
2020-07-31 13:48:01 +00:00
|
|
|
{{ end }}
|