create_post_tdunn: Create a new post with the tdunn.ca template

View source: R/distill.R

create_post_tdunnR Documentation

Create a new post with the tdunn.ca template

Description

This function wraps distill::create_post() to create a template post for my website https://tdunn.ca.

Usage

create_post_tdunn(..., open = TRUE)

Arguments

...

Arguments passed on to distill::create_post

title

Post title

collection

Collection to create the post within (defaults to "posts")

author

Post author. Automatically drawn from previous post if not provided.

slug

Post slug (directory name). Automatically computed from title if not provided.

date

Post date (defaults to current date)

date_prefix

Date prefix for post slug (preserves chronological order for posts within the filesystem). Pass NULL for no date prefix.

draft

Mark the post as a draft (don't include it in the article listing).

edit

Open the post in an editor after creating it.

open

Logical. If TRUE (default), opens the created file.

Details

Credit goes to Erik Ekholm: EE (2021, April 5). Eric Ekholm: Personalizing the Distill Template. Retrieved from https://www.ericekholm.com/posts/2021-04-02-personalizing-the-distill-template/

Examples

## Not run: 
create_post_tdunn("Post title", date = Sys.Date(), date_prefix = TRUE,
                  draft = TRUE, open = FALSE)

## End(Not run)

taylordunn/dunnr documentation built on Aug. 8, 2022, 12:28 p.m.