mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-17 05:35:00 +00:00
56 lines
2.2 KiB
Plaintext
56 lines
2.2 KiB
Plaintext
{{ define "title" }}
|
|
<link rel="stylesheet" href="{{ asset "css/chroma.css" }}">
|
|
<title>{{ with .Data.RenderedTitle }}{{ . }} - {{end}}{{ mdtitle .Blog.Title }}</title>
|
|
{{ include "postheadmeta" . }}
|
|
{{ with shorturl .Data }}<link rel="shortlink" href="{{ . }}">{{ end }}
|
|
{{ include "trackheader" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main class=h-entry>
|
|
<article>
|
|
<data class="u-url hide" value="{{ absolute .Data.Path }}"></data>
|
|
{{ with .Data.RenderedTitle }}<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 "trackdetails" . }}
|
|
{{ 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="path" value="{{ .Data.Path }}">
|
|
<input type="submit" value="{{ string .Blog.Lang "update" }}">
|
|
</form>
|
|
<form class="in" method="post" action="{{ .Blog.RelativePath "/editor" }}">
|
|
<input type="hidden" name="action" value="delete">
|
|
<input type="hidden" name="url" value="{{ .Canonical }}">
|
|
<input type="submit" value="{{ string .Blog.Lang "delete" }}" class="confirm" data-confirmmessage="{{ string .Blog.Lang "confirmdelete" }}">
|
|
</form>
|
|
{{ if ttsenabled }}
|
|
<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>
|
|
{{ end }}
|
|
<script defer src="{{ asset "js/formconfirm.js" }}"></script>
|
|
</div>
|
|
{{ end }}
|
|
{{ if .CommentsEnabled }}
|
|
{{ include "interactions" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "post" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |