Skip to content

Commit

Permalink
Make youtube links open in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlo committed Mar 21, 2024
1 parent 7957e02 commit 5a41d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home_schedule.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ s <- readxl::read_xlsx("schedule.xlsx") %>%
# add links to topic
dplyr::mutate(topic = ifelse(is.na(link_slide), topic, paste0("<span>", topic, "<a class='marker' href='", link_slide, "'>", fa("fas fa-file-powerpoint"), "</a></span>"))) %>%
dplyr::mutate(topic = ifelse(is.na(link_lab), topic, paste0("<span>", topic, "<a class='marker' href='", link_lab, "'>", fa("fas fa-file-lines"), "</a></span>"))) %>%
dplyr::mutate(topic = ifelse(is.na(link_youtube), topic, paste0("<span>", topic, "<a class='marker' href='", link_youtube, "'>", fa("fab fa-youtube"),"</a></span>"))) %>%
dplyr::mutate(topic = ifelse(is.na(link_youtube), topic, paste0("<span>", topic, "<a class='marker' href='", link_youtube, "' target=”_blank”>", fa("fab fa-youtube"),"</a></span>"))) %>%
dplyr::mutate(time = paste0(start_time, " - ", end_time)) %>%
dplyr::mutate(instructor = ifelse(is.na(instructor), "", instructor)) %>%
dplyr::mutate(assistant = ifelse(is.na(assistant), "", assistant)) %>%
Expand Down

0 comments on commit 5a41d94

Please sign in to comment.