Skip to content

Commit

Permalink
update function (rename post qmd file)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahasverus committed Dec 20, 2024
1 parent a20bde9 commit 127d133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/create_post.R
Original file line number Diff line number Diff line change
Expand Up @@ -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 ----
Expand All @@ -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)
Expand Down

0 comments on commit 127d133

Please sign in to comment.