Skip to content

Commit

Permalink
Add missing / in article links
Browse files Browse the repository at this point in the history
  • Loading branch information
s-u committed Dec 18, 2023
1 parent 3bbfecd commit 6ca7659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/rj_web_issue.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ news_entry <- function(art) {
art$author <- vapply(art$author, function(z) z$name %||% paste(z$first_name, z$last_name), character(1L))
}
stringr::str_glue(
"[{art$title}](../../news/{art$slug})<br>{glue::glue_collapse(art$author, sep = ', ', last = ' and ')} {art$journal$firstpage %||% art$pages[1] %||% \"\"}\n\n"
"[{art$title}](../../news/{art$slug}/)<br>{glue::glue_collapse(art$author, sep = ', ', last = ' and ')} {art$journal$firstpage %||% art$pages[1] %||% \"\"}\n\n"
)
}

Expand All @@ -231,7 +231,7 @@ article_entry <- function(art) {
}

stringr::str_glue(
"[{art$title}](../../articles/{art$slug})<br>{glue::glue_collapse(art$author, sep = ', ', last = ' and ')} {art$journal$firstpage %||% art$pages[1] %||% \"\"}\n\n"
"[{art$title}](../../articles/{art$slug}/)<br>{glue::glue_collapse(art$author, sep = ', ', last = ' and ')} {art$journal$firstpage %||% art$pages[1] %||% \"\"}\n\n"
)
}

Expand Down

0 comments on commit 6ca7659

Please sign in to comment.