Mirror of the sourcecode for my blog, original repo: https://github.com/NobbZ/blog-nobbz-dev
Something went wrong. Try again.
567 B · 37 lines
Astro
at code-meta
1234567891011121314151617181920212223242526272829303132333435363738---// SPDX-FileCopyrightText: 2025 Norbert Melzer// SPDX-FileContributor: Norbert Melzer//// SPDX-License-Identifier: MIT
export interface Props { href: string; disabled?: boolean; spacer?: boolean;}
const { href, disabled, spacer } = Astro.props;
const enabled = !disabled;
let classes = [];if (spacer) { classes.push("mb-4");}---
<li class:list={["text-center", "p-2", ...classes]}> { enabled ? ( <a href={href}> <slot /> </a> ) : ( <a> <s> <slot /> </s> </a> ) }</li>