Create a quarto file for a specific staff member
create_staff_member_page.Rd
Creates a quarto file for a given input staff member.
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.
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