serve_site | R Documentation |
These are wrappers around blogdown::serve_site()
and blogdown::stop_server()
.
The main purpose is to ensure that the blogdown re-knitting process doesn't
run when files are saved. stop_server()
is a simple re-export.
serve_site( build_rmd = TRUE, rmd_folder = "R/Rmd", rebuild = FALSE, drafts = TRUE, future = TRUE ) stop_server()
build_rmd |
whether to build Rmd files before serving |
rmd_folder |
the folder containing Rmd files |
rebuild |
whether to trigger a rebuild of all Rmd files |
drafts |
whether to include drafts |
future |
whether to include pages with a date in the future |
stop_server
: Stop serving a Hugo site
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.