59 lines
No EOL
1.4 KiB
Text
59 lines
No EOL
1.4 KiB
Text
---
|
|
import '../styles/global.css';
|
|
import Search from '../components/Search.astro';
|
|
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
|
|
import BackToTop from "../components/BackToTop.astro";
|
|
import { siteConfig } from "../config";
|
|
|
|
interface Props {
|
|
title: string;
|
|
path?: string;
|
|
}
|
|
|
|
const defaultTitle = siteConfig.title
|
|
const formattedPath = defaultTitle.toLowerCase().replace(/\s+/g, '-');
|
|
|
|
const { title, path = formattedPath } = Astro.props;
|
|
// TODO: make the path dynamic
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<meta name="generator" content={Astro.generator} />
|
|
<title>{title}</title>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<div class="container">
|
|
<div class="terminal-path">
|
|
{path}
|
|
</div>
|
|
|
|
<nav class="nav">
|
|
<a href="/">Home</a>
|
|
<a href="/blog">Blog</a>
|
|
</nav>
|
|
|
|
<Search />
|
|
|
|
<div class="content-box">
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<div class="floating">
|
|
<BackToTop/>
|
|
<ThemeSwitcher/>
|
|
</div>
|
|
<div class="container">
|
|
Powered by <a href="https://git.gb0.dev/gb/mercury"><img src="/mercury.svg" width="16px" alt="mercury logo" /> mercury</a>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html> |