Skip to content

Commit

Permalink
feat: add new yaml options (toc & draft)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Mar 14, 2024
1 parent 47d0770 commit 961cb64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/create_post.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ create_post <- function(title, date = NULL) {
yaml <- c(yaml, paste0("date: \"", date, "\""))
yaml <- c(yaml, paste0("categories: [tag1, tag2]"))
yaml <- c(yaml, paste0("image: \"\""))
yaml <- c(yaml, paste0("toc: true"))
yaml <- c(yaml, paste0("draft: true"))
yaml <- c(yaml, "---")
yaml <- c(yaml, "")
yaml <- c(yaml, "Post content...")
Expand Down

0 comments on commit 961cb64

Please sign in to comment.