Skip to content

Commit

Permalink
fix: 修复批量分发报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 6, 2023
1 parent be3da7e commit 55ead01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"zh_CN": "发布工具"
},
"description": {
"default": "Publishing articles from siyuan-note to platforms such as Yuque, Cnblogs, WordPress, Typecho, Hexo, Hugo and more",
"zh_CN": "将思源笔记的文章发布到语雀、Cnblogs、WordPress、Typecho、Hexo、Hugo 等平台,支持极速发布、图床管理、平台扩展、智能标签等特色功能"
"default": "Publish articles from Siyuan Notes to platforms such as Yuque, Notion, Cnblogs, WordPress, Typecho, Hexo, Zhihu and more",
"zh_CN": "将思源笔记的文章发布到语雀、Notion、Cnblogs、WordPress、Typecho、Hexo、知乎 等平台,支持极速发布、图床管理、平台扩展、智能标签等特色功能"
},
"readme": {
"default": "README.md",
Expand Down
2 changes: 1 addition & 1 deletion src/composables/usePublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const usePublish = () => {
const preHandlePost = (doc: Post, cfg: BlogConfig): Post => {
const post = doc
// 发布格式
if (cfg.pageType == PageTypeEnum.Markdown) {
if (cfg?.pageType == PageTypeEnum.Markdown) {
post.description = post.markdown
}
return post
Expand Down

0 comments on commit 55ead01

Please sign in to comment.