Skip to content

blogdown 1.3

Compare
Choose a tag to compare
@yihui yihui released this 14 Apr 15:28

NEW FEATURES

  • check_config() will suggest ignoring the renv folder and the renv.lock file in the Hugo config if renv is used in the project (thanks, @solarchemist, #597).

  • check_content() will also discover problematic YAML metadata of posts that is not a list (thanks, msmielak, https://stackoverflow.com/q/66857582/559676).

  • New project menu in RStudio IDE now allows to select for keeping config.toml (thanks, @ogansser, #606).

MAJOR CHANGES

  • The method argument of build_site() has been removed (it was defunct in blogdown v1.2). Please set the build method in the global option options(blogdown.method = ) instead.

  • The use_brew argument of install_hugo() has been removed.

BUG FIXES

  • check_content() will ignore renv folders when looking for Rmd/md files to be checked (thanks, @solarchemist, #597).

  • The RStudio addin "Update Metadata" does not work when the global option blogdown.rename_file is not set (thanks, @brshallo, #605).

  • The RStudio addin "New Post" does not work when the YAML metadata of a post only contains a string. Normally the metadata should be a list (thanks, msmielak, https://stackoverflow.com/q/66857582/559676).

  • When .Rmd is not ignored in the ignoreFiles field in the site config file (this can be detected by blogdown::check_site() and you should fix it), .Rmd files may be copied to the public/ directory when building the site via blogdown::build_site(), which can cause problems when blogdown::serve_site() is running, i.e., .Rmd files will be rendered to the rmarkdown::html_document() format by rmarkdown::render(). As a result, the corresponding web pages will not be rendered by Hugo but only Pandoc, and they will lose the site style or shortcodes (thanks, @ogansser, #610 #608). Now blogdown::check_site() should detect this problem and recommend fixes.