Skip to content

Commit

Permalink
Always showing badges + removing download badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKrantz committed Oct 12, 2023
1 parent 1e16b43 commit 738482e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/build-home-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ build_home_index <- function(pkg = ".", quiet = TRUE) {
render_page(pkg, "home", data, "index.html", quiet = quiet)

strip_header <- isTRUE(pkg$meta$home$strip_header)
hide_badges <- pkg$development$mode == "release" && !pkg$development$in_dev
hide_badges <- FALSE # pkg$development$mode == "release" && !pkg$development$in_dev

update_html(
dst_path,
Expand Down
3 changes: 2 additions & 1 deletion R/tweak-homepage.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ badges_extract <- function(html) {

xml2::xml_remove(x)

as.character(badges)
badges <- as.character(badges)
badges[!grepl("download", badges, ignore.case = TRUE)]
}

badges_extract_text <- function(x) {
Expand Down

0 comments on commit 738482e

Please sign in to comment.