minearm-website 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/astro.config.ts +75 -38
- package/minearm.ts +0 -2
- package/package.json +75 -63
- package/public/avatar.avif +0 -0
- package/public/favicon.png +0 -0
- package/public/favicon1.png +0 -0
- package/public/scripts/mdata.json +3 -3
- package/public/scripts/searchData.json +46 -46
- package/src/components/Search.astro +30 -0
- package/src/components/client/searchCore.vue +167 -45
- package/src/components/icons/bilibili.astro +1 -2
- package/src/components/icons/c.astro +1 -2
- package/src/components/icons/cube.astro +1 -3
- package/src/components/icons/hardDriver.astro +1 -2
- package/src/components/icons/home.astro +1 -2
- package/src/components/loading/loading.vue +0 -12
- package/src/components/postlist/pagination.astro +39 -25
- package/src/components/postlist/postsList.astro +57 -0
- package/src/content/blog/history//345/205/254/345/205/203/345/211/215//347/247/246/345/247/213/347/232/207/347/273/237/344/270/200/345/205/255/345/233/275.md +1 -0
- package/src/content/blog/history//350/277/221/344/273/243/347/257/207//344/270/255/345/233/275/345/205/261/344/272/247/345/205/232/345/205/232/345/217/262.md +2360 -2361
- package/src/content/blog/it/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +14 -0
- package/src/content/config.ts +0 -1
- package/src/layouts/BaseLayout.astro +1 -1
- package/src/layouts/DefaultMdLayout.astro +4 -0
- package/src/layouts/HomeLayout.astro +2 -0
- package/src/layouts/PostLayout.astro +2 -0
- package/src/layouts/TagsLayout.astro +2 -0
- package/src/pages/404.md +2 -0
- package/src/pages/[...page].astro +13 -10
- package/src/pages/about/index.md +3 -3
- package/src/pages/blog/[...slug].astro +10 -1
- package/src/pages/friends/index.md +12 -10
- package/src/styles/blog/code.scss +1 -1
- package/src/styles/components/aside.scss +1 -1
- package/src/styles/components/header.scss +1 -1
- package/src/styles/components/main.scss +1 -1
- package/src/styles/global.scss +2 -2
- package/src/styles/tags/tags.scss +13 -23
- package/src/theme_config.ts +11 -13
- package/tsconfig.json +13 -23
- package/public/13.jpg +0 -0
- package/public/13.png +0 -0
- package/public/1937daxue.png +0 -0
- package/public/3.png +0 -0
- package/public/404.png +0 -0
- package/public/5.jpg +0 -0
- package/public/avatar.jpg +0 -0
- package/public/c++1.png +0 -0
- package/public/logo.png +0 -0
- package/public/nahida.png +0 -0
- package/public/pojipao.avif +0 -0
- package/public/video.png +0 -0
- package/public/xmrig.jpg +0 -0
- package/src/content/blog/Mail.md +0 -15
- package/src/layouts/c.astro +0 -42
- package/src/layouts/h.astro +0 -60
package/src/layouts/h.astro
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
---
|
2
|
-
import "@style/blog/index.scss";
|
3
|
-
import BaseLayout from "@layout/BaseLayout.astro";
|
4
|
-
import BlogToc from "@comp/aside/blogToc.astro";
|
5
|
-
import Aside from "@comp/aside/aside.astro";
|
6
|
-
import PostComment from "@comp/postComment.astro";
|
7
|
-
import type { CollectionEntry } from "astro:content";
|
8
|
-
import { ThemeConfig } from "@src/theme_config";
|
9
|
-
|
10
|
-
interface Props {
|
11
|
-
postData?: CollectionEntry<"blog">["data"];
|
12
|
-
toc?: {
|
13
|
-
level: string;
|
14
|
-
id: string;
|
15
|
-
value: string;
|
16
|
-
}[];
|
17
|
-
useComments?: boolean;
|
18
|
-
desc?: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
const { toc, useComments = true, postData, desc } = Astro.props;
|
22
|
-
---
|
23
|
-
|
24
|
-
<BaseLayout class="post-page" description={postData?.description || desc}>
|
25
|
-
<Fragment slot="head-end">
|
26
|
-
<script
|
27
|
-
is:inline
|
28
|
-
async
|
29
|
-
src="https://cdn.staticfile.org/fancyapps-ui/5.0.20/fancybox/fancybox.umd.min.js"
|
30
|
-
></script>
|
31
|
-
<link
|
32
|
-
rel="stylesheet"
|
33
|
-
href="https://cdn.staticfile.org/fancyapps-ui/5.0.20/fancybox/fancybox.min.css"
|
34
|
-
/>
|
35
|
-
</Fragment>
|
36
|
-
<slot name="post-hero" />
|
37
|
-
<article class="post-container">
|
38
|
-
<main class="post-main">
|
39
|
-
<slot />
|
40
|
-
{useComments && <PostComment />}
|
41
|
-
</main>
|
42
|
-
<Aside
|
43
|
-
comps={ThemeConfig.postPage.aside.comps}
|
44
|
-
stickyComps={ThemeConfig.postPage.aside.stickyComps}
|
45
|
-
class="post-aside"
|
46
|
-
>
|
47
|
-
{toc && <BlogToc toc={toc} />}
|
48
|
-
</Aside>
|
49
|
-
</article>
|
50
|
-
<Fragment slot="body-end">
|
51
|
-
<script is:inline>
|
52
|
-
Fancybox.bind("[data-fancybox]", {
|
53
|
-
closeButton: true,
|
54
|
-
Thumbs: {
|
55
|
-
type: "modern",
|
56
|
-
},
|
57
|
-
});
|
58
|
-
</script>
|
59
|
-
</Fragment>
|
60
|
-
</BaseLayout>
|