1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{{ define "base" }} <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>{{ template "title" . }}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/png" href="/static/favicon.png" /> <link rel="stylesheet" href="/static/main.css"> </head> <body> <main> {{ template "main" . }} </main> </body> </html> {{ end }}