mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-18 05:05:00 +00:00
14 lines
298 B
Plaintext
14 lines
298 B
Plaintext
{{ define "title" }}
|
|
<title>{{ with .Data.Title }}{{ . }}{{end}}</title>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main>
|
|
{{ with .Data.Title }}<h1>{{ . }}</h1>{{ end }}
|
|
{{ with .Data.Message }}{{ md . }}{{ end }}
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "error" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |