mirror of
https://github.com/yudejp/yude.jp.git
synced 2026-01-27 04:18:07 +00:00
ヘッダーをグローバル領域に移動する, ページ タイトルを Frontmatter から取得する
This commit is contained in:
parent
06144ba8ae
commit
87e5505074
@ -2,6 +2,7 @@
|
||||
import appleTouchIcon from '../assets/apple-touch-icon-180x180.png';
|
||||
import icon192 from '../assets/icon-192x192.png';
|
||||
import "../styles/global.css";
|
||||
const { frontmatter } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@ -12,7 +13,7 @@ import "../styles/global.css";
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>yude.jp</title>
|
||||
<title>{frontmatter?.title ? `${frontmatter?.title} - yude.jp` : 'yude.jp'}</title>
|
||||
<link rel="apple-touch-icon" type="image/png" href={appleTouchIcon.src}>
|
||||
<link rel="icon" type="image/png" href={icon192.src}>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css">
|
||||
@ -26,6 +27,10 @@ import "../styles/global.css";
|
||||
</head>
|
||||
<body>
|
||||
<slot />
|
||||
<footer style="text-align: center;">
|
||||
<p>© 2014 - 2026 yude <code><i@yude.jp></code></p>
|
||||
<img src="https://moe-counter-cf.yude.workers.dev/yude.jp:home" height="100rem" />
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -20,11 +20,6 @@ import {Content as IndexContent} from '../content/index.md';
|
||||
<div class="content" id="content">
|
||||
<IndexContent />
|
||||
</div>
|
||||
|
||||
<footer style="text-align: center;">
|
||||
<p>© 2025 yude <code><i@yude.jp></code></p>
|
||||
<img src="https://moe-counter-cf.yude.workers.dev/yude.jp:home" height="100rem" />
|
||||
</footer>
|
||||
</Layout>
|
||||
|
||||
<style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user