diff options
Diffstat (limited to 'web/layouts')
-rw-r--r-- | web/layouts/baseof.html | 11 | ||||
-rw-r--r-- | web/layouts/home.html | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/web/layouts/baseof.html b/web/layouts/baseof.html new file mode 100644 index 0000000..983e6e1 --- /dev/null +++ b/web/layouts/baseof.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>{{ .Site.Title }}</title> + </head> + <body> + {{ block "main" . }}{{end}} + </body> +</html> diff --git a/web/layouts/home.html b/web/layouts/home.html new file mode 100644 index 0000000..5425ac9 --- /dev/null +++ b/web/layouts/home.html @@ -0,0 +1,3 @@ +{{- define "main" -}} +<h1>{{ .Site.Title }}</h1> +{{- end -}} |