emmas.place/src/layouts/MarkdownLayout.astro

25 lines
687 B
Plaintext

---
import BasicLayout from "./BasicLayout.astro";
const { frontmatter } = Astro.props;
---
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="me" href="https://chaosfem.tw/@ttywitch" />
<link rel="me" href="https://social.lol/@emma" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{frontmatter.title}</title>
<style>
a {
padding: 0.5rem;
}
</style>
</head>
<BasicLayout>
<h1>{frontmatter.title}</h1>
{frontmatter.categoryPage ? <a href="../../">go back to {frontmatter.category} - category</a> : ""}
<slot />
</BasicLayout>