diff --git a/cli/templates/.vuepress/config.ts.handlebars b/cli/templates/.vuepress/config.ts.handlebars index 1d7be565..f041388f 100644 --- a/cli/templates/.vuepress/config.ts.handlebars +++ b/cli/templates/.vuepress/config.ts.handlebars @@ -4,7 +4,7 @@ * - @see https://theme-plume.vuejs.press/config/theme/ 主题配置项 * * 请注意,对此文件的修改都会重启 vuepress 服务。 - * 部分配置项的更新没有必要重启 vuepress 服务,建议请在 `.vuepress/config.{{ useTs ? 'ts' : 'js' }}` 文件中配置 + * 部分配置项的更新没有必要重启 vuepress 服务,建议请在 `.vuepress/config.{{#if useTs}}ts{{else}}js{{/if}}` 文件中配置 * * 特别的,请不要在两个配置文件中重复配置相同的项,当前文件的配置项会被覆盖 */ diff --git a/cli/templates/.vuepress/navbar.ts.handlebars b/cli/templates/.vuepress/navbar.ts.handlebars index ef1513db..18071fc1 100644 --- a/cli/templates/.vuepress/navbar.ts.handlebars +++ b/cli/templates/.vuepress/navbar.ts.handlebars @@ -1,7 +1,7 @@ /** * @see https://theme-plume.vuejs.press/config/navigation/ 查看文档了解配置详情 * - * Navbar 配置文件,它在 `.vuepress/plume.config.{{ useTs ? 'ts' : 'js' }}` 中被导入。 + * Navbar 配置文件,它在 `.vuepress/plume.config.{{#if useTs}}ts{{else}}js{{/if}}` 中被导入。 */ import { defineNavbarConfig } from 'vuepress-theme-plume' diff --git a/cli/templates/.vuepress/notes.ts.handlebars b/cli/templates/.vuepress/notes.ts.handlebars index 88d11477..c13e4e43 100644 --- a/cli/templates/.vuepress/notes.ts.handlebars +++ b/cli/templates/.vuepress/notes.ts.handlebars @@ -1,7 +1,7 @@ /** * @see https://theme-plume.vuejs.press/guide/document/ 查看文档了解配置详情。 * - * Notes 配置文件,它在 `.vuepress/plume.config.{{ useTs ? 'ts' : 'js' }}` 中被导入。 + * Notes 配置文件,它在 `.vuepress/plume.config.{{#if useTs}}ts{{else}}js{{/if}}` 中被导入。 * * 请注意,你应该先在这里配置好 Notes,然后再启动 vuepress,主题会在启动 vuepress 时, * 读取这里配置的 Notes,然后在与 Note 相关的 Markdown 文件中,自动生成 permalink。 diff --git a/cli/templates/.vuepress/plume.config.ts.handlebars b/cli/templates/.vuepress/plume.config.ts.handlebars index cf25aea2..fb5684af 100644 --- a/cli/templates/.vuepress/plume.config.ts.handlebars +++ b/cli/templates/.vuepress/plume.config.ts.handlebars @@ -5,9 +5,9 @@ * * 请注意,对此文件的修改不会重启 vuepress 服务,而是通过热更新的方式生效 * 但同时部分配置项不支持热更新,请查看文档说明 - * 对于不支持热更新的配置项,请在 `.vuepress/config.{{ useTs ? 'ts' : 'js' }}` 文件中配置 + * 对于不支持热更新的配置项,请在 `.vuepress/config.{{#if useTs}}ts{{else}}js{{/if}}` 文件中配置 * - * 特别的,请不要在两个配置文件中重复配置相同的项,当前文件的配置项会覆盖 `.vuepress/config.{{ useTs ? 'ts' : 'js' }}` 文件中的配置 + * 特别的,请不要在两个配置文件中重复配置相同的项,当前文件的配置项会覆盖 `.vuepress/config.{{#if useTs}}ts{{else}}js{{/if}}` 文件中的配置 */ import { defineThemeConfig } from 'vuepress-theme-plume'