Skip to content

Commit

Permalink
feat: clean urls
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Aug 19, 2023
1 parent 850a692 commit 36e4f30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default withMermaid({
title: "HDU-CS-WIKI",
description: "HDU 计算机科学讲义",
lastUpdated: true,
cleanUrls: true,
head: [['script', { async: "async", src: 'https://umami.hdu-cs.wiki/script.js', "data-website-id": "3f11687a-faae-463a-b863-6127a8c28301", "data-domains": "wiki.xyxsw.site,hdu-cs.wiki" }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {

watch(
() => ctx.router.route.data.relativePath,
() => updateHomePageStyle(location.pathname === '/' || location.pathname === '/contributors.html'),
() => updateHomePageStyle(location.pathname === '/' || location.pathname === '/contributors'),
{ immediate: true },
)
},
Expand Down
2 changes: 1 addition & 1 deletion 1.杭电生存指南/1.2竞赛指北.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CTF还有的缺点也是目前热门领域的通病:发展速度过快,后

更多可以参考计算安全章节

[传送门](/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8.html)
[传送门](/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8/6.%E8%AE%A1%E7%AE%97%E6%9C%BA%E5%AE%89%E5%85%A8)

## 数据科学竞赛

Expand Down
3 changes: 3 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cleanUrls": true
}

0 comments on commit 36e4f30

Please sign in to comment.