Skip to content

Commit

Permalink
no longer hack at wowchemy's cms module since disable: true has bee…
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Mar 2, 2021
1 parent a679898 commit 87e9691
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: blogdown
Type: Package
Title: Create Blogs and Websites with R Markdown
Version: 1.1.16
Version: 1.1.17
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person("Christophe", "Dervieux", role = "aut", email = "[email protected]", comment = c(ORCID = "0000-0003-4474-2498")),
Expand Down
9 changes: 0 additions & 9 deletions R/hugo.R
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,6 @@ move_config = function() {
file.rename(f2[i], f1[i])
# delete config.yaml if config.toml exists
if (length(f1) >= 2 && file_exists(f1[1])) unlink(f1[2])
# delete `disable: true` in wowchemy's config:
# https://github.com/rstudio/blogdown/issues/546#issuecomment-788253660
if (file_exists(f1[2])) {
x = read_utf8(f1[2])
if (length(i <- grep('path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms', x))) {
i = i[1]
if (grepl('^\\s+disable: true', x[i + 1])) write_utf8(x[-(i + 1)], f1[2])
}
}
}

#' @param path The path to the new file under the \file{content} directory.
Expand Down

0 comments on commit 87e9691

Please sign in to comment.