Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2022 14:34
What would you like to do?
astro page layout, no css, no javascript, pure html
const { title, lang, links } = Astro.props.frontmatter ?? Astro.props
const raw = Astro.props.rawContent()
<html lang={lang ?? 'en'}>
<link rel="icon" href="data:,">
<title>{title ?? 'Astro 1kB'}</title>
<pre style="font:unset">
{raw ?? <slot />}
<h2 style="font-size:unset">Links</h2>
{ => (
<>[{link.text}]: <a href={link.url}>{link.url}</a><br /></>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment