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