mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-29 12:07:36 +00:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
{{ define "title" }}
|
|
<title>{{ with p .Data "title" }}{{ . }} - {{end}}{{ .Blog.Title }}</title>
|
|
{{ include "postheadmeta" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main class=h-entry>
|
|
<article>
|
|
<data class="u-url hide" value="{{ absolute .Data.Path }}"></data>
|
|
{{ with title .Data }}<h1 class=p-name>{{ . }}</h1>{{ end }}
|
|
{{ include "postmeta" . }}
|
|
{{ include "postactions" . }}
|
|
{{ if .Data.Content }}
|
|
{{ include "oldcontentwarning" . }}
|
|
<div class=e-content>
|
|
{{ with p .Data "audio" }}
|
|
<audio controls preload="none" class="fw"><source src="{{ . }}"/></audio>
|
|
{{ end }}
|
|
{{ content .Data }}
|
|
{{ with p .Data "link" }}
|
|
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank" rel="noopener">{{ . }}</a></p>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ include "posttax" . }}
|
|
</article>
|
|
{{ include "author" . }}
|
|
</main>
|
|
{{ include "interactions" . }}
|
|
{{ end }}
|
|
|
|
{{ define "post" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |