diff --git a/docs/demos.md b/docs/demos.md index 7b188479..bd713db6 100644 --- a/docs/demos.md +++ b/docs/demos.md @@ -5,7 +5,7 @@ permalink: /demos/ readingTime: false prev: false next: false -draft: true +article: false externalLinkIcon: false contributors: false changelog: false diff --git a/docs/friends.md b/docs/friends.md index d3c62d58..2ce44a1d 100644 --- a/docs/friends.md +++ b/docs/friends.md @@ -3,7 +3,7 @@ pageLayout: friends title: 友情链接 description: 这里是友情链接的描述文字,此页面仅作为示例展示 permalink: /friends/ -draft: true +article: true list: - name: pengzhanbo diff --git a/docs/notes/theme/config/frontmatter/post.md b/docs/notes/theme/config/frontmatter/post.md index f15550dd..7194c905 100644 --- a/docs/notes/theme/config/frontmatter/post.md +++ b/docs/notes/theme/config/frontmatter/post.md @@ -30,21 +30,19 @@ tags: 如果为 `number` ,则数字越大,文章置顶的位置越靠前。 -### article +### article - 类型: `boolean` - 默认值: `true` -是否在文章列表中,显示当前文章。 - -由于该字段 表达的语义不明,已弃用,改为使用 `draft` +是否在文章列表中显示当前文章。 ### draft - 类型: `boolean` - 默认值: `false` -标记文章是否为草稿。被标记为草稿的文章,不会出现在 博客文章列表页中。 +标记文章是否为草稿。被标记为草稿的文章,仅在 **开发环境时显示在文章列表中**,生产环境不会显示。 ### tags diff --git a/docs/questions.md b/docs/questions.md index 205cc53d..18f7333b 100644 --- a/docs/questions.md +++ b/docs/questions.md @@ -2,7 +2,7 @@ title: 常见问题 createTime: 2024/09/27 08:47:36 permalink: /faq/ -draft: true +article: false --- 本文主要包含了使用主题的过程中可能会遇到的常见问题与解决方法。 diff --git a/docs/sponsor.md b/docs/sponsor.md index 72254bba..5e91997f 100644 --- a/docs/sponsor.md +++ b/docs/sponsor.md @@ -2,7 +2,7 @@ title: 喝杯奶茶 createTime: 2024/04/18 18:03:50 permalink: /sponsor/ -draft: true +article: false aside: false readingTime: false contributors: false diff --git a/theme/src/client/components/Blog/VPPostItem.vue b/theme/src/client/components/Blog/VPPostItem.vue index 436ed0bf..946830d3 100644 --- a/theme/src/client/components/Blog/VPPostItem.vue +++ b/theme/src/client/components/Blog/VPPostItem.vue @@ -97,7 +97,7 @@ const coverStyles = computed(() => {