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.
27 lines
673 B
Plaintext
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>
|