1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-13 00:57:09 +00:00
GoBlog/templates/post.gohtml

14 lines
333 B
Plaintext

{{ template "base" . }}
{{ define "title" }}
<title>{{ with title . }}{{ . }} - {{end}}{{ blog.Title }}</title>
{{ end }}
{{ define "main" }}
<main class=h-entry>
<article>
{{ with title . }}<h1 class=p-name>{{ . }}</h1>{{ end }}
<div class=e-content>{{ md .Content }}</div>
</article>
</main>
{{ end }}