diff --git a/R/create_post.R b/R/create_post.R index f251edf..60cdaec 100644 --- a/R/create_post.R +++ b/R/create_post.R @@ -99,7 +99,7 @@ create_post <- function(title, date = NULL) { yaml <- paste0(yaml, collapse = "\n") post_dir <- file.path("posts", slug) - post_qmd <- file.path("posts", slug, paste0(slug, ".qmd")) + post_qmd <- file.path("posts", slug, "index.qmd") ## Create post folder ---- @@ -122,7 +122,7 @@ create_post <- function(title, date = NULL) { ## Opening .qmd file ---- - file.edit(file.path("posts", slug, paste0(slug, ".qmd"))) + file.edit(file.path("posts", slug, "index.qmd")) invisible(NULL)