View source: R/site-academic.R
create_site_academic | R Documentation |
Create a hugo academic 4.8.0 site, configured to work well with hugodown. In particular, it ensures that the following features important for R users work correctly:
Syntax highlighting (turns off default js highlighting, renables
default chroma, and sets up styles in assets/chroma.css
).
Math
HTML widgets
Default post archetype is tweaked to create .Rmd
create_site_academic( path = ".", open = is_interactive(), rstudio = rstudioapi::isAvailable() )
path |
Path to create site |
open |
Open new site after creation? |
rstudio |
Create RStudio project? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.