create_post: Create a new blog post

Description Usage Arguments Note Examples

View source: R/create.R

Description

Create a new blog post

Usage

1
2
create_post(title, author = "auto", slug = "auto",
  date_prefix = TRUE, draft = FALSE, edit = interactive())

Arguments

title

Post title

author

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

slug

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

date_prefix

Data prefix for post slug (preserves chronological order for posts within the filesystem).

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.

Note

This function must be called from with a working directory that is within a Radix website.

Examples

1
2
3
4
5
## Not run: 
library(radix)
create_post("My Post")

## End(Not run)

radix documentation built on May 1, 2019, 8:05 p.m.

Related to create_post in radix...