Skip to content

blogdown 0.6

Choose a tag to compare

@yihui yihui released this 19 Apr 14:40
· 852 commits to main since this release

NEW FEATURES

  • Added a title_case argument to the new_post() function; if TRUE, the post title will be converted to title case. See ?blogdown::new_post for details.

  • Added a hostname argument to install_theme() and new_site(), as a complement to the theme argument. The default hostname is 'github.com'; if you have access to GitHub Enterprise, you can use this to specify it instead (thanks, @ijlyttle, #264).

  • The new_post addin now lets you choose an archetype. See https://gohugo.io/content-management/archetypes/ for more details (thanks, @lcolladotor, #173).

  • Added a new RStudio addin (insert_image) for inserting external images into blog posts (thanks, @lcolladotor, #269). If you use options(blogdown.insertimage.usebaseurl = TRUE), it adds the baseurl so that RSS feeds will include the images and be properly displayed in websites such as RBloggers (#275). You will need to publish the images so that they are displayed in a local preview and will need to keep in mind some drawbacks discussed in #275.

  • The theme argument of install_theme() and new_site() now accepts a full URL to a theme's repository zip file. This can be used to install themes from other web-based git hosts, like GitLab and Bitbucket (thanks, @gadenbuie, #271).

  • You may download the zip archive or tarball of the Hugo installer from Github by yourself, and pass the path to install_hugo() to install it, e.g., blogdown::install_hugo('hugo_0.38_Windows-64bit.zip') (thanks, @shrektan, #288).

BUG FIXES

  • The kind argument (i.e., the archetype) of new_content() now works with files that end in .Rmd and .Rmarkdown. The archetype still has to end in .md for Hugo to work with it (thanks, @lcolladotor, #261).

MINOR CHANGES

  • The Github repo yihui/hugo-lithium-theme was renamed to yihui/hugo-lithiutm, and the default theme argument value was changed accordingly (thanks, @rorynolan, #291).