Skip to content

Commit 695664a

Browse files
committed
Don't use ui_*() functions inside ui_code_block()
1 parent acb929c commit 695664a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/logo.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ use_logo <- function(img, geometry = "240x278", retina = TRUE) {
5151
ui_todo("Add logo to your README with the following html:")
5252
pd_link <- pkgdown_url(pedantic = TRUE)
5353
if (is.null(pd_link)) {
54-
ui_code_block("# {pkg} <img src={ui_path(logo_path)} align=\"right\" height=\"{height}\" />")
54+
ui_code_block("# {pkg} <img src=\"{proj_rel_path(logo_path)}\" align=\"right\" height=\"{height}\" />")
5555
} else {
56-
ui_code_block("# {pkg} <a href={ui_value(pd_link)}><img src={ui_path(logo_path)} align=\"right\" height=\"{height}\" /></a>")
56+
ui_code_block("# {pkg} <a href=\"{pd_link}\"><img src=\"{proj_rel_path(logo_path)}\" align=\"right\" height=\"{height}\" /></a>")
5757
}
5858
}

0 commit comments

Comments
 (0)