Skip to content

Commit

Permalink
✨ feat(route): redirect blog to blog/
Browse files Browse the repository at this point in the history
  • Loading branch information
bingling-sama committed Jul 31, 2024
1 parent 4b01f31 commit c36d1f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export default withPwa(
vite: viteConfig,
pwa: pwaConfig,

rewrites: {
"blog": "blog/"
},

sitemap: {
hostname: "https://crashmc.com",
},
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/analyzers/mcla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class MCLAWorker implements MCLAAPI {

async function loadMCLAWorker(loadProgress?: Ref<number>): Promise<MCLAAPI> {
const worker = MCLAWorker.createFromWorker(
new Worker(new URL("@theme/workers/mcla.worker.ts", import.meta.url), {
new Worker(new URL("@/theme/workers/mcla.worker.ts", import.meta.url), {
type: "classic",
}),
loadProgress,
Expand Down
2 changes: 1 addition & 1 deletion docs/contribute/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ git clone https://github.com/{yourname}/crashmc.com.git

如果您发起或主导了某篇文章的编写,可以在 frontmatter 中署名,文末将会显示您的 GitHub 头像和地址,便于读者提出意见与后期可能存在的文章修改及版权相关事宜。

```
```md
---
editor: username <!-- GitHub Username -->
---
Expand Down

0 comments on commit c36d1f2

Please sign in to comment.