blogdown 0.7
NEW FEATURES
-
Added a new RStudio addin "Touch File" to update the modification time of a file, which can be useful when you want to force rebuilding a certain Rmd post after running
serve_site()
(#294). -
Added an RStudio addin "Quote Poem" to quote a poem using the Markdown syntax (https://yihui.name/en/2018/06/quote-poem-blogdown/).
-
Added a new function
shortcodes()
, which is a vectorized version ofshortcode()
. For example, you can embed multiple tweets (thanks, @maelle, #307). -
Added an argument
ignore
tobuild_dir()
to ignore output filenames when testing if the Rmd file is newer than its possible output files. By default,*.Rproj
files are ignored (thanks, @chepec, #308). -
Added a global option
blogdown.draft.output
. Ifoptions(blogdown.draft.output = TRUE)
is set, a fielddraft: yes
will be appended to the YAML metadata of the HTML output file from an Rmd post, unless the Rmd post has already set thedraft
option. This means the output files are always drafts unless you explicitly setdraft: no
in the YAML metadata of Rmd posts (thanks, @mwaldstein, #305).
BUG FIXES
-
Applied a workaround for the bug in the
Rscript
command: https://stat.ethz.ch/pipermail/r-devel/2018-April/075897.html (reported from https://stackoverflow.com/q/50077412). -
The TOML metadata in new posts may fail to be converted to YAML (thanks, @apreshill, #301).
-
When editing the
config.toml
file on Windows,serve_site()
could fail with an error message'---did you forget a '#'? at line 1>seImpl(path.expand(input), verbose, fromFile): Unidentified trailing character'
(thanks, @rhobis, #302).