astro page layout, no css, no javascript, pure html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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