From e5f065b7383a7e6230bd7eb8bc31dc4769b8182f Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 21 Jul 2023 16:52:59 +0200 Subject: [PATCH] feat: Add index page --- config.toml | 1 + layouts/_default/baseof.html | 13 +++++++++++++ layouts/index.html | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html diff --git a/config.toml b/config.toml index d6c841a..bf7708a 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,6 @@ baseURL = "https://diapos.resilien.fr/" languageCode = "fr-fr" +defaultContentLanguage = 'fr' title = "Présentation" theme = "reveal-hugo" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..4b0c0f0 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,13 @@ + + +{{/* {{ partial "head.html" . }} */}} + + {{/* {{ partial "header.html" . }} */}} + {{/* {{ partial "debug.html" . }} */}} +
+ {{ block "main" . }}{{ end }} +
+ {{/* {{ partial "footer.html" . }} */}} + {{/* {{ partial "js.html" . }} */}} + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..7702a41 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,8 @@ +{{ define "main" }} + {{ .Content }} + +{{ end }} \ No newline at end of file