From 5b652a1bb136accac19592614bf8b7cdcf18343b Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 29 Mar 2019 16:15:43 +0100 Subject: Add home page placeholder to not display empty page --- layouts/home.html | 29 +++++++++++++++++++++++++++++ layouts/posts/baseof.html | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 layouts/home.html (limited to 'layouts') 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 @@ + +{{- partial "docs/shared" -}} + + + + {{ partial "docs/html-head" . }} + {{ partial "docs/inject/head" . }} + +{{- $content := ` +# Hugo Book Theme + +This is a placeholder for home page. +You can override this page in: + + - `/content/_index.md` + - `/layouts/home.html` +` -}} + +
+
+ {{ replace $content "`" "`" | markdownify }} +
+
+ + {{ partial "docs/inject/body" . }} + {{ template "_internal/google_analytics_async.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" . }} -
+
{{ partial "docs/mobile-header" . }} {{ template "main" . }}
-- cgit v1.2.3