mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-03 20:34:27 +00:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
{{ define "title" }}
|
|
<title>{{ with .Data.Title }}{{ . }} - {{end}}{{ .Blog.Title }}</title>
|
|
{{ include "postheadmeta" . }}
|
|
{{ with shorturl .Data }}<link rel="shortlink" href="{{ . }}">{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main class=h-entry>
|
|
<article>
|
|
<data class="u-url hide" value="{{ absolute .Data.Path }}"></data>
|
|
{{ with .Data.Title }}<h1 class=p-name>{{ . }}</h1>{{ end }}
|
|
{{ include "postmeta" . }}
|
|
{{ include "postactions" . }}
|
|
{{ if .Data.Content }}
|
|
{{ include "oldcontentwarning" . }}
|
|
<div class=e-content>
|
|
{{ content .Data false }}
|
|
</div>
|
|
{{ end }}
|
|
{{ include "posttax" . }}
|
|
</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="url" value="{{ .Canonical }}">
|
|
<input type="submit" value="{{ string .Blog.Lang "update" }}">
|
|
</form>
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}#delete">
|
|
<input type="hidden" name="editoraction" value="loaddelete">
|
|
<input type="hidden" name="url" value="{{ .Canonical }}">
|
|
<input type="submit" value="{{ string .Blog.Lang "delete" }}">
|
|
</form>
|
|
</div>
|
|
{{ end }}
|
|
{{ if .CommentsEnabled }}
|
|
{{ include "interactions" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "post" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |