blogdown 1.3
NEW FEATURES
-
check_config()
will suggest ignoring therenv
folder and therenv.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 ofbuild_site()
has been removed (it was defunct in blogdown v1.2). Please set the build method in the global optionoptions(blogdown.method = )
instead. -
The
use_brew
argument ofinstall_hugo()
has been removed.
BUG FIXES
-
check_content()
will ignorerenv
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 theignoreFiles
field in the site config file (this can be detected byblogdown::check_site()
and you should fix it),.Rmd
files may be copied to thepublic/
directory when building the site viablogdown::build_site()
, which can cause problems whenblogdown::serve_site()
is running, i.e.,.Rmd
files will be rendered to thermarkdown::html_document()
format byrmarkdown::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). Nowblogdown::check_site()
should detect this problem and recommend fixes.