You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

---
import "../css/base.scss";
import "../css/font.scss";
import "../css/color.scss";
import Footer from "../components/footer.astro";
const { content } = Astro.props;
const canonicalURL = new URL(
Astro.url.pathname,
process.env.NODE_ENV === "development"
? "http://localhost:3000"
: Astro.site
);
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>{content.title}</title>
<meta property="og:type" content="article" />
<meta property="og:title" content={content.title} />
<meta property="og:description" content={content.description} />
<meta property="og:url" content={canonicalURL} />
</head>
<body class="main-content">
<div>
<h2>{content.title}</h2>
{content.description ? <h3>{content.description}</h3> : undefined}
</div>
<slot />
<Footer
entries={{
Back: new URL(
canonicalURL +
(canonicalURL.toString().endsWith("/") ? ".." : "/..")
),
}}
/>
</body>
</html>