Skip to content

Commit

Permalink
refactor: move some config to metaInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Oct 26, 2023
1 parent 16e43e7 commit dbaa270
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { defineConfig } from 'vitepress'
import { withPwa } from '@vite-pwa/vitepress'

const metaInfo = {
title: 'Hi, PFCC!',
description: 'PFCC 社区博客~',
}

export default withPwa(
defineConfig({
title: 'Hi, PFCC!',
description: 'PFCC 社区博客~',
title: metaInfo.title,
description: metaInfo.description,
lang: 'zh-CN',
cleanUrls: true,
head: [
Expand Down Expand Up @@ -54,9 +59,9 @@ export default withPwa(
registerType: 'autoUpdate',
manifest: {
id: '/',
name: 'Hi, PFCC!',
short_name: 'Hi, PFCC!',
description: 'PFCC 社区博客~',
name: metaInfo.title,
short_name: metaInfo.title,
description: metaInfo.description,
theme_color: '#ffffff',
start_url: '/',
lang: 'zh-CN',
Expand Down

0 comments on commit dbaa270

Please sign in to comment.