This commit is contained in:
2025-12-05 22:35:54 +08:00
parent ffdf0502e2
commit 0df73b268a
8 changed files with 493 additions and 554 deletions

View File

@@ -4,7 +4,8 @@ export interface Props {
title?: string;
description?: string;
}
import 'github-markdown-css/github-markdown-light.css';
import 'highlight.js/styles/github-dark.css';
const { title, description } = Astro.props;
---
@@ -12,9 +13,6 @@ const { title, description } = Astro.props;
<head>
<meta charset="UTF-8" />
<title>{title || '文档'}</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css">
</head>
<body class="bg-gray-50 min-h-screen">
<div class="container mx-auto px-4 py-8 max-w-4xl">

View File

@@ -0,0 +1,4 @@
---
---
分页组件