use_post | R Documentation |
Post creation takes advantage of Hugo's
archetypes or templates,
with an extension for .Rmd
files. use_post()
first calls hugo new
(which will apply go templating to .md
files in the archetype),
and then uses whisker to template
any .Rmd
files.
use_post(path, kind = NULL, data = list(), site = ".", open = is_interactive())
path |
Directory to create, like |
kind |
Kind of archetype of use; usually automatically derived
from the base directory of |
data |
Any additional data to be used when templating The default data includes:
|
site |
Path to the hugo site. |
open |
Open file for interactive editing? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.