Skip to contents

Creates a quarto file for a given input staff member.

Usage

create_staff_member_page(staff_member, site_dir, staff_folder = "staff")

Arguments

staff_member

An object of class staff_member that will be used to generate the template.

site_dir

Directory of the website.

staff_folder

Subfolder in which the staff qmd files are stored. Default "staff". Note that each template will be index.qmd to facilitate pretty link formatting in-browser.

Value

No return value, called to create a qmd file for the staff member.

Examples

example_staff_member <- staff_member(
    id = "example-id",
    name = "Example Name",
    description = "Example description for example staff member.",
    external_link = "http://www.example.com/",
    internal_link = FALSE
)
create_staff_member_page(example_staff_member, tempdir())
#> Creating /var/folders/bl/50qwpc0n15517355znb7_srnfcm2zk/T//RtmpmtuMP2/project/staff_example-id.Rmd
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former