From 94702b622c3931fcd7622f30c0de615bbbfefa0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 24 Nov 2020 17:58:00 +0100 Subject: [PATCH] Add i18n footer and imprint --- assets/style.scss | 12 ++++++++++++ content/imprint.de.md | 7 +++++++ content/imprint.md | 8 ++++++++ i18n/de.toml | 2 ++ i18n/en.toml | 2 ++ layouts/_default/baseof.html | 5 +++++ 6 files changed, 36 insertions(+) create mode 100644 content/imprint.de.md create mode 100644 content/imprint.md create mode 100644 i18n/de.toml create mode 100644 i18n/en.toml diff --git a/assets/style.scss b/assets/style.scss index 9247549..4815aae 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -12,6 +12,9 @@ body { background: $background; + display: flex; + flex-direction: column; + min-height: 100vh; } header { @@ -23,6 +26,11 @@ main { margin: auto; } +footer { + text-align: center; + padding: 0.5em; +} + h1, h2, h3, h4, h5, h6, p { margin-bottom: 0.5em; padding: 0 0.5rem; @@ -56,6 +64,10 @@ figure { } } +.wrapper { + flex: 1; +} + .nav { max-width: 1200px; margin: 0 auto; diff --git a/content/imprint.de.md b/content/imprint.de.md new file mode 100644 index 0000000..7af56e7 --- /dev/null +++ b/content/imprint.de.md @@ -0,0 +1,7 @@ +--- +title: Impressum +--- + +backspace e. V. +Spiegelgraben 41 +96052 Bamberg diff --git a/content/imprint.md b/content/imprint.md new file mode 100644 index 0000000..844ed27 --- /dev/null +++ b/content/imprint.md @@ -0,0 +1,8 @@ +--- +title: Imprint +--- + +backspace e. V. +Spiegelgraben 41 +96052 Bamberg +Germany diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 0000000..64a1d7f --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,2 @@ +[imprint] +other = "Impressum" diff --git a/i18n/en.toml b/i18n/en.toml new file mode 100644 index 0000000..94348fa --- /dev/null +++ b/i18n/en.toml @@ -0,0 +1,2 @@ +[imprint] +other = "Imprint" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c64887b..73f2065 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -20,7 +20,12 @@ {{ end }} +
{{ block "main" . }} {{ end }} +
+