minearm-website 0.0.3-beta.3 → 0.1.3

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.
Files changed (42) hide show
  1. package/Dockerfile +12 -0
  2. package/{LICENSE → LICENSE.md} +2 -2
  3. package/README.md +19 -4
  4. package/astro.config.ts +37 -32
  5. package/cz.yaml +7 -0
  6. package/docker-compose.yml +11 -0
  7. package/netlify.toml +4 -0
  8. package/package.json +63 -63
  9. package/public/13.png +0 -0
  10. package/public/scripts/mdata.json +3 -3
  11. package/public/scripts/searchData.json +47 -0
  12. package/src/content/blog/{default/history → 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 +2361 -2361
  13. package/src/content/blog/{default/it → it}/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +41 -29
  14. package/src/content/config.ts +1 -0
  15. package/src/layouts/BaseLayout.astro +0 -1
  16. package/src/layouts/DefaultMdLayout.astro +0 -4
  17. package/src/layouts/HomeLayout.astro +0 -2
  18. package/src/layouts/TagsLayout.astro +0 -1
  19. package/src/pages/404.md +1 -2
  20. package/src/pages/[...page].astro +8 -4
  21. package/src/pages/about/index.md +19 -5
  22. package/src/pages/categories/index.astro +2 -2
  23. package/src/pages/friends/index.md +2 -2
  24. package/src/pages/tags/index.astro +3 -2
  25. package/src/styles/blog/dist/blog.css +59 -0
  26. package/src/styles/blog/dist/code.css +59 -0
  27. package/src/styles/blog/dist/index.css +1 -0
  28. package/src/styles/blog/dist/post.css +246 -0
  29. package/src/styles/components/dist/footer.css +29 -0
  30. package/src/styles/components/dist/index.css +1 -0
  31. package/src/styles/components/dist/page-content.css +60 -0
  32. package/src/styles/dist/animation.css +8 -0
  33. package/src/styles/dist/custom.css +10 -0
  34. package/src/styles/dist/global.css +1095 -0
  35. package/src/styles/dist/mixin.css +0 -0
  36. package/src/theme_config.ts +4 -4
  37. package/src/components/Search.astro +0 -30
  38. package/src/components/icons/game.astro +0 -10
  39. package/src/components/postlist/postsList.astro +0 -57
  40. /package/src/content/blog/{default/Extended Search.md → Extended Search.md} +0 -0
  41. /package/src/content/blog/{default/Mail.md → Mail.md} +0 -0
  42. /package/src/content/blog/{default/history → 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" +0 -0
File without changes
@@ -17,7 +17,7 @@ export const ThemeConfig: Configs = {
17
17
  localSearch: {
18
18
  enable: true,
19
19
  comment: "你可以使用类似 unix 的格式:[扩展搜索](/blog/Search-help/)",
20
- hits: ["[扩展搜索](/blog/Search-help/)", "[Help](/blog/Search-help/)"],
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 to wrap the function body and return the replacement value.
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,7 +170,7 @@ export const ThemeConfig: Configs = {
170
170
  // },
171
171
  type: "waline",
172
172
  options: {
173
- serverURL: "https://api.minearm.org",
173
+ serverURL: "https://youserver.com",
174
174
  },
175
175
  //type: true,
176
176
  //options: null,
@@ -1,30 +0,0 @@
1
- ---
2
- import "@style/components/search.scss";
3
- import SearchCore from "./client/searchCore.vue";
4
- import { ThemeConfig } from "@src/theme_config";
5
- import { utils } from "@src/utils/utils";
6
-
7
- const hits = ThemeConfig.site.localSearch.hits.map((hit) =>
8
- utils.replaceLink(hit, "search-hit")
9
- );
10
- const comment = utils.replaceLink(
11
- utils.executeEmbeddedScripts(ThemeConfig.site.localSearch.comment)
12
- );
13
- ---
14
-
15
- <div id="search" class="hide">
16
- <div class="search-wrap">
17
- <div class="search-header">
18
- <div class="search-title">搜索</div>
19
- <div class="search-close" onclick={"hsu.closesearch()"}>
20
- <i class="fa-solid fa-xmark"></i>
21
- </div>
22
- </div>
23
- <SearchCore client:only />
24
- <div class="search-hits">
25
- {hits.map((hit) => <Fragment set:html={hit} />)}
26
- </div>
27
- <div class="search-comment" set:html={comment} />
28
- </div>
29
- <div class="search-mask" onclick={"hsu.closesearch()"}></div>
30
- </div>
@@ -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
- >
@@ -1,57 +0,0 @@
1
- ---
2
- import { ThemeConfig } from "@src/theme_config";
3
- import { utils } from "@utils/utils";
4
- import type { CollectionEntry } from "astro:content";
5
- interface Props {
6
- posts: CollectionEntry<"blog">[];
7
- }
8
- const { posts } = Astro.props;
9
- ---
10
-
11
- <div class="posts-list">
12
- {
13
- posts.map((post) => (
14
- <div
15
- class="main-card post-card"
16
- onclick={`hsu.goToUrl("/blog/${post.data.abbrlink || post.slug}/")`}
17
- >
18
- <div class="post-card-cover">
19
- <img
20
- src={post.data.cover || ThemeConfig.homePage.defaultCover}
21
- alt="post-cover"
22
- />
23
- </div>
24
- <div class="post-card-info">
25
- <header class="post-card-header">
26
- <a
27
- class="post-card-category"
28
- href={`/categories/${post.data.category}`}
29
- >
30
- {post.data.category}
31
- </a>
32
- </header>
33
- <div class="post-card-title">{post.data.title}</div>
34
- <div class="post-card-desc">{post.data.description}</div>
35
- <footer class="post-card-footer">
36
- <ul class="post-card-tags">
37
- {() => {
38
- if (post.data.tags) {
39
- return post.data.tags.map((tag) => (
40
- <li class="post-card-tag">
41
- <a href={`/tags/${tag}`}>{tag}</a>
42
- </li>
43
- ));
44
- }
45
- }}
46
- </ul>
47
- <div class="post-card-update">
48
- <a href="/timeline">
49
- {post.data.updatedDate || post.data.pubDate}
50
- </a>
51
- </div>
52
- </footer>
53
- </div>
54
- </div>
55
- ))
56
- }
57
- </div>
File without changes