Add i18n footer and imprint

This commit is contained in:
Martin Müller 2020-11-24 17:58:00 +01:00
parent 0d575d97c6
commit 94702b622c
6 changed files with 36 additions and 0 deletions

View File

@ -12,6 +12,9 @@
body { body {
background: $background; background: $background;
display: flex;
flex-direction: column;
min-height: 100vh;
} }
header { header {
@ -23,6 +26,11 @@ main {
margin: auto; margin: auto;
} }
footer {
text-align: center;
padding: 0.5em;
}
h1, h2, h3, h4, h5, h6, p { h1, h2, h3, h4, h5, h6, p {
margin-bottom: 0.5em; margin-bottom: 0.5em;
padding: 0 0.5rem; padding: 0 0.5rem;
@ -56,6 +64,10 @@ figure {
} }
} }
.wrapper {
flex: 1;
}
.nav { .nav {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;

7
content/imprint.de.md Normal file
View File

@ -0,0 +1,7 @@
---
title: Impressum
---
backspace e. V.
Spiegelgraben 41
96052 Bamberg

8
content/imprint.md Normal file
View File

@ -0,0 +1,8 @@
---
title: Imprint
---
backspace e. V.
Spiegelgraben 41
96052 Bamberg
Germany

2
i18n/de.toml Normal file
View File

@ -0,0 +1,2 @@
[imprint]
other = "Impressum"

2
i18n/en.toml Normal file
View File

@ -0,0 +1,2 @@
[imprint]
other = "Imprint"

View File

@ -20,7 +20,12 @@
{{ end }} {{ end }}
</nav> </nav>
</header> </header>
<div class="wrapper">
{{ block "main" . }} {{ block "main" . }}
{{ end }} {{ end }}
</div>
<footer>
<a href="/imprint">{{ i18n "imprint" }}</a>
</footer>
</body> </body>
</html> </html>