mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-29 12:27:34 +00:00
14 lines
302 B
Plaintext
14 lines
302 B
Plaintext
{{ define "title" }}
|
|
<title>{{ with .Title }}{{ . }} - {{end}}{{ blog.Title }}</title>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main>
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
{{ with .Message }}{{ md . }}{{ end }}
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "error" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |