Skip to content

Commit

Permalink
add external link for people with no internal link
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeLydeamore committed Jun 28, 2023
1 parent 2dea878 commit e97ba8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/generate_markdown_for_member.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generate_markdown_for_member <- function(member, extension = "png") {
ifelse(
member$internal_link,
glue::glue("<div class='col' onclick=\"location.href='staff/{member$id}.html';\" style='cursor: pointer;'>"),
"<div class='col'>"
"<div class='col' onclick=\"location.href={member$external_link};\" style='cursor: pointer;'>"
),
"",
glue::glue("<div class='personimg'> ![](images/staff/{{member$id}}.{{extension}}){fig-alt='{{member$name}}'} </div>", .open = "{{", .close = "}}"),
Expand Down

0 comments on commit e97ba8f

Please sign in to comment.