Files
jeanlucmakiola.de/src/components/Footer.astro
T
makiolaj 92472937cc Restore spaces stripped at wrapped inline-tag boundaries
Astro drops the whitespace run when a line break falls exactly at an inline
tag boundary, so "the\n<a ...>" renders glued. Adds {' '} at the wrap.
The footer one showed on every page.
2026-09-09 16:01:16 +02:00

27 lines
673 B
Plaintext

---
import { Icon } from 'astro-icon/components';
import { SITE, SOCIALS } from '../consts';
const year = new Date().getFullYear();
---
<footer class="site-footer">
<div class="site-footer__inner">
<p>
© {year} {SITE.author} · <a href="/uses">Uses</a> ·{' '}
<a href="/impressum">Impressum</a> · <a href="/datenschutz">Datenschutz</a>
</p>
{
SOCIALS.length > 0 && (
<nav aria-label="Social" class="socials">
{SOCIALS.map((s) => (
<a href={s.href} rel="me noopener">
<Icon name={s.icon} />
{s.label}
</a>
))}
</nav>
)
}
</div>
</footer>