diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/home.html | 29 | ||||
-rw-r--r-- | layouts/posts/baseof.html | 2 |
2 files changed, 30 insertions, 1 deletions
diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..d2db819 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,29 @@ +<!DOCTYPE html> +{{- partial "docs/shared" -}} +<html> + +<head> + {{ partial "docs/html-head" . }} + {{ partial "docs/inject/head" . }} +</head> +{{- $content := ` +# Hugo Book Theme + +This is a placeholder for home page. +You can override this page in: + + - `/content/_index.md` + - `/layouts/home.html` +` -}} +<body> + <main class="flex justify-center"> + <div class="book-page markdown"> + {{ replace $content "`" "`" | markdownify }} + </div> + </main> + + {{ partial "docs/inject/body" . }} + {{ template "_internal/google_analytics_async.html" . }} +</body> + +</html> diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index bbf5d45..6e49ce8 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -14,7 +14,7 @@ {{ partial "docs/menu" . }} </aside> - <div class="book-posts mr-auto"> + <div class="book-posts"> {{ partial "docs/mobile-header" . }} {{ template "main" . }} </div> |