Add customisable footer menu
All checks were successful
Deploy / deploy (push) Successful in 4s

This commit is contained in:
Marcel Kapfer 2024-10-07 17:45:31 +02:00
parent 03ff4fc0f6
commit 0de1f74f75
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
4 changed files with 18 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -423,11 +423,16 @@ footer {
text-align: center; text-align: center;
& a { & a {
color: var(--c-font-inv); color: var(--c-font-inv);
text-decoration: none; margin-right: 10px;
text-decoration: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
&:last-of-type {
margin-right: 0;
}
} }
} }

View file

@ -21,6 +21,10 @@ columns:
options: options:
- page - page
- url - url
footerMenu:
type: pages
label: Footer Menu
sidebar: sidebar:
width: 1/3 width: 1/3
sections: sections:

View file

@ -62,7 +62,9 @@
<footer> <footer>
<p><?= date('Y') ?> © <?= $site->author() ?></p> <p><?= date('Y') ?> © <?= $site->author() ?></p>
<p> <p>
<a href="<?= page('imprint')->url() ?>">Impressum und Datenschutz</a> <?php foreach ($site->footerMenu()->toPages() as $item): ?>
<a href="<?= $item->url() ?>"><?= $item->title() ?></a>
<?php endforeach ?>
</p> </p>
</footer> </footer>
</body> </body>