re-add bookworm and add deprecation notice on every page
This commit is contained in:
parent
7bb8bc74b7
commit
8f4bef9908
52 changed files with 3925 additions and 0 deletions
32
src/components/Banner.astro
Normal file
32
src/components/Banner.astro
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
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 section is outdated. Please use the guide for <a href="/ispmail-trixie/">Debian Trixie</a>.
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue