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.
blogdown_template(type, path = ".", theme = NULL)
blogdown_archetypes(path = ".", theme = NULL)
an archetype
the path to your blogdown site
the theme to check for archetypes. By default,
blogdown_template()
will attempt to read your theme from your config
file.
a yml
object