Skip to content

Instantly share code, notes, and snippets.

@weakish
Created Aug 15, 2022
Embed
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'}>
<head>
<link rel="icon" href="data:,">
<title>{title ?? 'Astro 1kB'}</title>
</head>
<body>
<pre style="font:unset">
{raw ?? <slot />}
</pre>
<footer>
<h2 style="font-size:unset">Links</h2>
{links.map((link) => (
<>[{link.text}]: <a href={link.url}>{link.url}</a><br /></>
))}
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment