#' @export
github <- function(..., toc = TRUE, number_sections = FALSE) {
before_body <- pkg_file("includes", "before_body.md")
bookdown::github_document2(toc = TRUE, number_sections = number_sections, pandoc_args = "--shift-heading-level-by=1",
includes = rmarkdown::includes(before_body = before_body), ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.