create_website: Create the templates for a condensr website

View source: R/create_website.R

create_websiteR Documentation

Create the templates for a condensr website

Description

Creates the necessary directories, high level files and structures for a condensr website.

Usage

create_website(dir, title)

Arguments

dir

Target directory for the website.

title

Title of the website.

Details

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

Value

No return value, called to create the skeleton structure of the website.

Examples

create_website(dir = tempdir(), "test_site")

condensr documentation built on Aug. 30, 2023, 5:13 p.m.