feat(build): html head meta generator (#3219)

pull/3221/head
烽宁 1 year ago committed by GitHub
parent 67610363bc
commit 672e4946ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 : ''}
${ ${

Loading…
Cancel
Save