powered by
Rename a blog post directory, by default using the title and date specified within the post's front matter.
rename_post_dir(post_dir, slug = "auto", date_prefix = "auto")
Path to post directory
Post slug (directory name). Automatically computed from title if not provided.
Date prefix for post. Defaults to the post's date field (or the current date if there is none). Pass NULL to not use a date prefix.
NULL
if (FALSE) { library(distill) rename_post_dir("_posts/2020-09-12-my-post") rename_post_dir("_posts/2020-09-12-my-post", date_prefix = "9/15/2020") }
Run the code above in your browser using DataLab