minearm-website 0.1.2 → 0.2.0
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/.hintrc +16 -0
- package/LICENSE.md +21 -21
- package/README.md +11 -7
- package/astro.config.ts +37 -37
- package/package.json +64 -63
- package/public/13.jpg +0 -0
- package/public/scripts/mdata.json +2 -2
- package/public/scripts/searchData.json +47 -0
- package/src/components/Search.astro +1 -1
- package/src/components/icons/bilibili.astro +1 -2
- package/src/components/icons/c.astro +1 -2
- package/src/components/icons/cube.astro +1 -2
- package/src/components/icons/hardDriver.astro +1 -2
- package/src/components/icons/home.astro +1 -2
- package/src/components/loading/loading.vue +1 -13
- package/src/components/postlist/pagination.astro +39 -25
- package/src/components/postlist/postsList.astro +1 -1
- package/src/content/blog/Extended Search.md +50 -0
- package/src/content/blog/Mail.md +15 -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 +99 -100
- package/src/content/blog/it/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +14 -0
- package/src/pages/404.md +1 -2
- package/src/pages/[...page].astro +13 -10
- package/src/pages/about/index.md +11 -7
- package/src/pages/blog/[...slug].astro +1 -1
- package/src/pages/categories/index.astro +2 -2
- package/src/pages/tags/index.astro +3 -2
- package/src/styles/blog/dist/blog.css +59 -0
- package/src/styles/blog/dist/code.css +59 -0
- package/src/styles/blog/dist/index.css +1 -0
- package/src/styles/blog/dist/post.css +246 -0
- package/src/styles/components/aside.scss +1 -1
- package/src/styles/components/dist/footer.css +29 -0
- package/src/styles/components/dist/index.css +1 -0
- package/src/styles/components/dist/page-content.css +60 -0
- package/src/styles/components/header.scss +1 -1
- package/src/styles/components/main.scss +1 -1
- package/src/styles/dist/animation.css +8 -0
- package/src/styles/dist/custom.css +10 -0
- package/src/styles/dist/global.css +1095 -0
- package/src/styles/dist/mixin.css +0 -0
- package/src/styles/global.scss +2 -2
- package/src/styles/tags/tags.scss +13 -23
- package/src/theme_config.ts +5 -6
- package/src/components/icons/game.astro +0 -10
- package/src/lib/posts.js +0 -21
File without changes
|
package/src/styles/global.scss
CHANGED
@@ -1,69 +1,56 @@
|
|
1
|
-
@
|
1
|
+
@use "../mixin.scss" as *;
|
2
|
+
|
2
3
|
.tags-wrap {
|
3
4
|
display: flex;
|
4
|
-
|
5
5
|
align-items: center;
|
6
|
-
|
7
6
|
justify-content: center;
|
8
|
-
|
9
7
|
min-height: 300px;
|
8
|
+
|
10
9
|
.tags {
|
11
10
|
display: flex;
|
12
|
-
|
13
11
|
align-items: center;
|
14
|
-
|
15
12
|
flex-wrap: wrap;
|
16
|
-
|
17
13
|
justify-content: center;
|
18
|
-
|
19
14
|
width: 100%;
|
20
|
-
|
21
15
|
max-width: 800px;
|
16
|
+
|
22
17
|
.tag {
|
23
18
|
margin: 0.5rem;
|
24
|
-
|
25
19
|
padding: 5px 8px;
|
26
|
-
|
27
20
|
text-decoration: none;
|
28
|
-
|
29
21
|
color: var(--font-black-white);
|
30
|
-
|
31
22
|
border-radius: 10px;
|
32
|
-
|
33
23
|
background-color: var(--card-background);
|
34
|
-
|
35
24
|
font-size: 20px;
|
36
|
-
|
25
|
+
|
37
26
|
@include card-style();
|
27
|
+
|
38
28
|
&:hover {
|
39
29
|
transform: scale(1.2);
|
40
|
-
|
41
30
|
color: white;
|
42
|
-
|
43
31
|
background: var(--theme-color);
|
32
|
+
|
44
33
|
.tag-text {
|
45
34
|
&::before {
|
46
35
|
color: white;
|
47
36
|
}
|
48
37
|
}
|
49
38
|
}
|
39
|
+
|
50
40
|
.tag-text {
|
51
41
|
&::before {
|
52
42
|
margin-right: 3px;
|
53
|
-
|
54
43
|
content: "#";
|
55
|
-
|
56
44
|
transition: 0.3s ease;
|
57
|
-
|
58
45
|
color: var(--font-light-grey);
|
59
46
|
}
|
60
47
|
}
|
61
48
|
}
|
62
|
-
|
49
|
+
|
63
50
|
&.floating {
|
64
51
|
.tag {
|
65
52
|
animation: floating 7s ease-in-out infinite alternate;
|
66
|
-
|
53
|
+
|
67
54
|
&:nth-child(3n + 1) {
|
68
55
|
animation-delay: 0s;
|
69
56
|
}
|
@@ -77,7 +64,10 @@
|
|
77
64
|
}
|
78
65
|
}
|
79
66
|
}
|
67
|
+
|
80
68
|
#inner-container {
|
81
69
|
.main-content {
|
70
|
+
// 这里可以添加具体的样式或内容
|
71
|
+
// 例如:padding: 20px;
|
82
72
|
}
|
83
73
|
}
|
package/src/theme_config.ts
CHANGED
@@ -2,7 +2,7 @@ import { Icons } from "@comp/icons/icon";
|
|
2
2
|
import { SiteConfig } from "./site_config";
|
3
3
|
// import { faStar } from "@fortawesome/free-solid-svg-icons";
|
4
4
|
// import { library, icon } from "@fortawesome/fontawesome-svg-core";
|
5
|
-
//import Code from '
|
5
|
+
//import Code from '~/components/code.astro';
|
6
6
|
// library.add(faStar);
|
7
7
|
// const starIcon = icon({ prefix: "fas", iconName: "star" });
|
8
8
|
|
@@ -17,7 +17,7 @@ export const ThemeConfig: Configs = {
|
|
17
17
|
localSearch: {
|
18
18
|
enable: true,
|
19
19
|
comment: "你可以使用类似 unix 的格式:[扩展搜索](/blog/Search-help/)",
|
20
|
-
hits: ["[扩展搜索](/
|
20
|
+
hits: ["[扩展搜索](/blogSearch-help//)", "[Help](/blog/Search-help/)"],
|
21
21
|
},
|
22
22
|
backgroundBubbles: 20,
|
23
23
|
},
|
@@ -137,8 +137,8 @@ export const ThemeConfig: Configs = {
|
|
137
137
|
footer: {
|
138
138
|
text: "Design & Build with ❤ by Minearm-RPM",
|
139
139
|
copyright: `© 2023-${today.getFullYear()} By [Minearm-RPM](/about)`,
|
140
|
-
// 也可以使用
|
141
|
-
// You can also use
|
140
|
+
// 也可以使用 {{}} 包裹函数体,并返回替换值
|
141
|
+
// You can also use {{}} to wrap the function body and return the replacement value.
|
142
142
|
// copyright: `© 2023-{{const today = new Date();return today.getFullYear();}} By [Minearm-RPM](/about)`,
|
143
143
|
},
|
144
144
|
homePage: {
|
@@ -170,10 +170,9 @@ export const ThemeConfig: Configs = {
|
|
170
170
|
// },
|
171
171
|
type: "waline",
|
172
172
|
options: {
|
173
|
-
serverURL: "https://
|
173
|
+
serverURL: "https://youserver",
|
174
174
|
},
|
175
175
|
//type: true,
|
176
176
|
//options: null,
|
177
177
|
},
|
178
178
|
};
|
179
|
-
|
@@ -1,10 +0,0 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
|
4
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"
|
5
|
-
><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
|
6
|
-
<path
|
7
|
-
fill="currentColor"
|
8
|
-
d="M488.6 104.1C505.3 122.2 513 143.8 511.9 169.8V372.2C511.5 398.6 502.7 420.3 485.4 437.3C468.2 454.3 446.3 463.2 419.9 464H92.02C65.57 463.2 43.81 454.2 26.74 436.8C9.682 419.4 .7667 396.5 0 368.2V169.8C.7667 143.8 9.682 122.2 26.74 104.1C43.81 87.75 65.57 78.77 92.02 78H121.4L96.05 52.19C90.3 46.46 87.42 39.19 87.42 30.4C87.42 21.6 90.3 14.34 96.05 8.603C101.8 2.868 109.1 0 117.9 0C126.7 0 134 2.868 139.8 8.603L213.1 78H301.1L375.6 8.603C381.7 2.868 389.2 0 398 0C406.8 0 414.1 2.868 419.9 8.603C425.6 14.34 428.5 21.6 428.5 30.4C428.5 39.19 425.6 46.46 419.9 52.19L394.6 78L423.9 78C450.3 78.77 471.9 87.75 488.6 104.1H488.6zM449.8 173.8C449.4 164.2 446.1 156.4 439.1 150.3C433.9 144.2 425.1 140.9 416.4 140.5H96.05C86.46 140.9 78.6 144.2 72.47 150.3C66.33 156.4 63.07 164.2 62.69 173.8V368.2C62.69 377.4 65.95 385.2 72.47 391.7C78.99 398.2 86.85 401.5 96.05 401.5H416.4C425.6 401.5 433.4 398.2 439.7 391.7C446 385.2 449.4 377.4 449.8 368.2L449.8 173.8zM185.5 216.5C191.8 222.8 195.2 230.6 195.6 239.7V273C195.2 282.2 191.9 289.9 185.8 296.2C179.6 302.5 171.8 305.7 162.2 305.7C152.6 305.7 144.7 302.5 138.6 296.2C132.5 289.9 129.2 282.2 128.8 273V239.7C129.2 230.6 132.6 222.8 138.9 216.5C145.2 210.2 152.1 206.9 162.2 206.5C171.4 206.9 179.2 210.2 185.5 216.5H185.5zM377 216.5C383.3 222.8 386.7 230.6 387.1 239.7V273C386.7 282.2 383.4 289.9 377.3 296.2C371.2 302.5 363.3 305.7 353.7 305.7C344.1 305.7 336.3 302.5 330.1 296.2C323.1 289.9 320.7 282.2 320.4 273V239.7C320.7 230.6 324.1 222.8 330.4 216.5C336.7 210.2 344.5 206.9 353.7 206.5C362.9 206.9 370.7 210.2 377 216.5H377z"
|
9
|
-
></path></svg
|
10
|
-
>
|
package/src/lib/posts.js
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
import fs from 'fs';
|
2
|
-
import path from 'path';
|
3
|
-
import matter from 'gray-matter';
|
4
|
-
|
5
|
-
const postsDirectory = path.join(process.cwd(), 'src/posts');
|
6
|
-
|
7
|
-
export function getPosts() {
|
8
|
-
const fileNames = fs.readdirSync(postsDirectory);
|
9
|
-
const allPostsData = fileNames.map(fileName => {
|
10
|
-
const fullPath = path.join(postsDirectory, fileName);
|
11
|
-
const fileContents = fs.readFileSync(fullPath, 'utf8');
|
12
|
-
const matterResult = matter(fileContents);
|
13
|
-
|
14
|
-
return {
|
15
|
-
data: matterResult.data,
|
16
|
-
content: matterResult.content,
|
17
|
-
url: `/posts/${fileName.replace(/\.md$/, '')}`
|
18
|
-
};
|
19
|
-
});
|
20
|
-
return allPostsData.sort((a, b) => b.data.pubDate.localeCompare(a.data.pubDate));
|
21
|
-
}
|