Skip to content

Commit 127d133

Browse files
author
Nicolas Casajus
committed
update function (rename post qmd file)
1 parent a20bde9 commit 127d133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/create_post.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ create_post <- function(title, date = NULL) {
9999
yaml <- paste0(yaml, collapse = "\n")
100100

101101
post_dir <- file.path("posts", slug)
102-
post_qmd <- file.path("posts", slug, paste0(slug, ".qmd"))
102+
post_qmd <- file.path("posts", slug, "index.qmd")
103103

104104

105105
## Create post folder ----
@@ -122,7 +122,7 @@ create_post <- function(title, date = NULL) {
122122

123123
## Opening .qmd file ----
124124

125-
file.edit(file.path("posts", slug, paste0(slug, ".qmd")))
125+
file.edit(file.path("posts", slug, "index.qmd"))
126126

127127

128128
invisible(NULL)

0 commit comments

Comments
 (0)