Skip to contents

Generates the image, short description and linking-out buttons for use in a list of staff belonging to a group.

Usage

generate_markdown_for_member(member, extension = "png")

Arguments

member

An object of class staff_member.

extension

Extension of the image file. Don't include the .

Value

No return value, function will output text directly into markdown document using cat.

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
)
generate_markdown_for_member(example_staff_member)
#> <div class='col'>
#> 
#> <div class='personimg'> ![](images/staff/example-id.png){fig-alt='Example Name'} </div>
#> 
#> ### Example Name
#> 
#> Example description for example staff member.
#> 
#> </div>
#>