mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-18 06:15:01 +00:00
23 lines
637 B
Plaintext
23 lines
637 B
Plaintext
{{ define "title" }}{{ 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" . }}
|
|
{{ if .Data.Content }}
|
|
<div class=e-content>
|
|
{{ content .Data }}
|
|
{{ with p .Data "link" }}
|
|
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank" rel="noopener">{{ . }}</a></p>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
</article>
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "postbasic" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |