feat: clean urls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 },
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user