From bba22b8f8504ad416d9dab73e9e9b6dbb7dbe977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 5 Jul 2022 00:20:46 +0200 Subject: [PATCH] archetypes: modularize initially empty home page default #300 --- layouts/partials/_index.html | 26 +++++--------------------- layouts/partials/initial.html | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 21 deletions(-) create mode 100644 layouts/partials/initial.html diff --git a/layouts/partials/_index.html b/layouts/partials/_index.html index 8250488442..3e7831c24b 100644 --- a/layouts/partials/_index.html +++ b/layouts/partials/_index.html @@ -1,25 +1,9 @@ {{- partial "header.html" . }} -{{- if .Site.Home.Content }} - {{- if eq (.Scratch.Get "relearnOutputFormat") "PRINT" }} - {{- partial "body.print.html" .Site.Home }} - {{- else }} - {{- partial "body.html" .Site.Home }} - {{- end }} +{{- if not .Site.Home.Content }} + {{- partial "initial.html" .Site.Home }} +{{- else if eq (.Scratch.Get "relearnOutputFormat") "PRINT" }} + {{- partial "body.print.html" .Site.Home }} {{- else }} -
- -

Customize your own home page

-

- The site is working. Don't forget to customize this page with your own. You typically have 3 choices : -

- - -
-
-
+ {{- partial "body.html" .Site.Home }} {{- end }} {{- partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/initial.html b/layouts/partials/initial.html new file mode 100644 index 0000000000..001a241678 --- /dev/null +++ b/layouts/partials/initial.html @@ -0,0 +1,15 @@ +
+ +

Customize your own home page

+

+ The site is working. Don't forget to customize this page with your own. You typically have 3 choices : +

+ + + +
\ No newline at end of file