From f81c011e6aed5ed7878d2bd4d41739d918fd6102 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Tue, 21 Jan 2025 11:59:30 +0800 Subject: [PATCH] feat(cli): add site favicon template (#439) --- cli/templates/.vuepress/config.ts.handlebars | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/templates/.vuepress/config.ts.handlebars b/cli/templates/.vuepress/config.ts.handlebars index ee21f1255..2903535ee 100644 --- a/cli/templates/.vuepress/config.ts.handlebars +++ b/cli/templates/.vuepress/config.ts.handlebars @@ -20,6 +20,11 @@ export default defineUserConfig({ description: '{{ siteDescription }}', {{/if}} + head: [ + // 配置站点图标 + ['link', { rel: 'icon', type: 'image/png', href: 'https://theme-plume.vuejs.press/favicon-32x32.png' }], + ], + bundler: {{ bundler }}Bundler(), shouldPrefetch: false, // 站点较大,页面数量较多时,不建议启用 @@ -180,6 +185,6 @@ export default defineUserConfig({ * 加密功能 * @see https://theme-plume.vuejs.press/guide/features/encryption/ */ - encrypt: {}, + // encrypt: {}, }), })