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;
& a {
color: var(--c-font-inv);
text-decoration: none;
color: var(--c-font-inv);
margin-right: 10px;
text-decoration: none;
&:hover {
text-decoration: underline;
}
&:hover {
text-decoration: underline;
}
&:last-of-type {
margin-right: 0;
}
}
}

View file

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

View file

@ -62,7 +62,9 @@
<footer>
<p><?= date('Y') ?> © <?= $site->author() ?></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>
</footer>
</body>