|
|
@ -17,6 +17,7 @@ import {
|
|
|
|
type PageData,
|
|
|
|
type PageData,
|
|
|
|
type SSGContext
|
|
|
|
type SSGContext
|
|
|
|
} from '../shared'
|
|
|
|
} from '../shared'
|
|
|
|
|
|
|
|
import { version } from '../../../package.json'
|
|
|
|
|
|
|
|
|
|
|
|
export async function renderPage(
|
|
|
|
export async function renderPage(
|
|
|
|
render: (path: string) => Promise<SSGContext>,
|
|
|
|
render: (path: string) => Promise<SSGContext>,
|
|
|
@ -162,6 +163,7 @@ export async function renderPage(
|
|
|
|
? ''
|
|
|
|
? ''
|
|
|
|
: `<meta name="description" content="${description}">`
|
|
|
|
: `<meta name="description" content="${description}">`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
<meta name="generator" content="VitePress v${version}">
|
|
|
|
${stylesheetLink}
|
|
|
|
${stylesheetLink}
|
|
|
|
${metadataScript.inHead ? metadataScript.html : ''}
|
|
|
|
${metadataScript.inHead ? metadataScript.html : ''}
|
|
|
|
${
|
|
|
|
${
|
|
|
|