|
|
@ -91,7 +91,7 @@ export async function resolveSiteData(root: string): Promise<SiteData> {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
title: userConfig.title || 'VitePress',
|
|
|
|
title: userConfig.title || 'VitePress',
|
|
|
|
description: userConfig.description || 'A VitePress site',
|
|
|
|
description: userConfig.description || 'A VitePress site',
|
|
|
|
base: userConfig.base || '/',
|
|
|
|
base: userConfig.base ? userConfig.base.replace(/([^/])$/, '$1/') : '/',
|
|
|
|
head: userConfig.head || [],
|
|
|
|
head: userConfig.head || [],
|
|
|
|
themeConfig: userConfig.themeConfig || {}
|
|
|
|
themeConfig: userConfig.themeConfig || {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|