Skip to content

Commit 883970e

Browse files
authored
Merge pull request #289 from cnblogs/fix-option-not-checked
fix: set displayOnHomePage to true
2 parents 4e1b032 + b19a467 commit 883970e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/service/post/create.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export async function createPost() {
2727
post.postBody = '# Hello World\n'
2828
post.isMarkdown = true
2929
post.isDraft = true
30+
post.displayOnHomePage = true
3031
post.postType = PostType.blogPost
3132
const postId = (await PostService.update(post)).id
3233
if (postId > 0) {

0 commit comments

Comments
 (0)