blogdown_template: Create YAML based on blogdown theme archetypes

View source: R/yml_blogdown.R

blogdown_templateR Documentation

Create YAML based on blogdown theme archetypes

Description

blogdown_template() creates YAML based on your blogdown theme archetypes. blogdown is based on Hugo, which supports many custom themes. Each theme uses YAML in a different way. However, many come with archetypes that define the YAML or TOML. To find out which types your theme has, use blogdown_archetypes() to see what's available. Use blogdown_template() to specify the archetype and it will convert the template to YAML that you can use in your post.

Usage

blogdown_template(type, path = ".", theme = NULL)

blogdown_archetypes(path = ".", theme = NULL)

Arguments

type

an archetype

path

the path to your blogdown site

theme

the theme to check for archetypes. By default, blogdown_template() will attempt to read your theme from your config file.

Value

a yml object


ymlthis documentation built on Aug. 5, 2022, 5:23 p.m.