33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
---
|
|
const { banner } = Astro.locals.starlightRoute.entry.data;
|
|
const isBookworm = Astro.url.pathname.startsWith("/ispmail-bookworm/");
|
|
---
|
|
|
|
{banner && <div class="sl-banner" data-pagefind-ignore set:html={banner.content} />}
|
|
|
|
<style>
|
|
@layer starlight.core {
|
|
.sl-banner {
|
|
--__sl-banner-text: var(--sl-color-banner-text, var(--sl-color-text-invert));
|
|
padding: var(--sl-nav-pad-y) var(--sl-nav-pad-x);
|
|
background-color: var(--sl-color-banner-bg, var(--sl-color-bg-accent));
|
|
color: var(--__sl-banner-text);
|
|
line-height: var(--sl-line-height-headings);
|
|
text-align: center;
|
|
text-wrap: balance;
|
|
box-shadow: var(--sl-shadow-sm);
|
|
}
|
|
.sl-banner :global(a) {
|
|
color: var(--__sl-banner-text);
|
|
}
|
|
}
|
|
</style>
|
|
|
|
{
|
|
isBookworm && (
|
|
<section style="background-color: #ffefef; padding: 1rem; border: 1px solid #f00; text-align: center;">
|
|
⚠️ This page is part of the ISPmail guide for Debian Bookworm. Please use the newer guide for{" "}
|
|
<a href="/ispmail-trixie/">Debian Trixie</a>.
|
|
</section>
|
|
)
|
|
}
|