View source: R/create_website.R
create_website | R Documentation |
Creates the necessary directories, high level files and structures for a condensr website.
create_website(dir, title)
dir |
Target directory for the website. |
title |
Title of the website. |
Under the hood, this function is creating a distill website (using
distill:::do_create_website
), and then overwriting some files with
condensr
specifics. These specific files are:
_site.yml - for site specific configurations
index.qmd - the home page of the website
staff_list.R - an example setup the condensr
staff, project and publication lists
staff/index.qmd - the template page that will list staff members
staff/joe-bloggs/index.qmd - an example page for the hypothetical staff member
No return value, called to create the skeleton structure of the website.
create_website(dir = tempdir(), "test_site")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.