diff options
author | tdro <tdro@noreply.example.com> | 2023-01-31 21:56:21 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-01-31 21:58:38 -0500 |
commit | 0e57d29f33a6fe4b8ec8a92b98c069305f531a19 (patch) | |
tree | 52ba18c739b12edef45815a0756604af4a3a1177 /themes/base/layouts/_default/baseof.html | |
download | hugo-theme-base-0e57d29f33a6fe4b8ec8a92b98c069305f531a19.tar.gz hugo-theme-base-0e57d29f33a6fe4b8ec8a92b98c069305f531a19.tar.bz2 hugo-theme-base-0e57d29f33a6fe4b8ec8a92b98c069305f531a19.zip |
themes/base: Commit
Diffstat (limited to 'themes/base/layouts/_default/baseof.html')
-rw-r--r-- | themes/base/layouts/_default/baseof.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/themes/base/layouts/_default/baseof.html b/themes/base/layouts/_default/baseof.html new file mode 100644 index 0000000..05466ea --- /dev/null +++ b/themes/base/layouts/_default/baseof.html @@ -0,0 +1,34 @@ +{{- $modified := partial "function-page-modified.html" . -}} + +{{- if $modified -}} +<!DOCTYPE html> +<html + lang="en-us" + data-kind="{{ .Page.Kind }}" + data-type="{{ .Page.Type }}" +> + <head> + <title> + {{- block "title" . -}} + {{ .Site.Title }} + {{- end -}} + </title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + + {{- $default := resources.Get "css/default.css" -}} + <link title ="Default" rel="stylesheet" href="{{ $default.Permalink }}" /> + </head> + + <body> + <main class="container"> + {{- block "main" . -}} + <p> + This is what you see if you don't + extend the base template's main block. + </p> + {{- end -}} + </main> + </body> +</html> +{{- end -}} |