Moving from Jekyll to blogdown
Given the rate at which I’m posting new content these days–3 posts in 2017, 2 in 2018, 1 in 2019–my blog appears to slowly be becoming a blog about moving from one blogging engine to another.
Behind the scenes, at some point in early 2019 (it’s hard to tell), I started moving the site from Jekyll to R’s blogdown, which uses the Hugo static site generator.
Reason number 1, which spurred this whole transition idea, is that GitHub keeps alerting me to security vulnerabilities in the blog dependencies, a lot of which are related to the theme I was using. Updating the theme, which would have resolved these, has always been a painful process for me because I made some small adjustments that get wiped out. I did like the theme, it’s good that GitHub identifies and alerts me to security issues, I just don’t want to mess around with theme updates every couple of months. Hopefully this will be less of an issue with blogdown, since there is more provision for modifying themes, e.g. some of the style customization lives in a separate
Number 2, I can now write blog posts in rmarkdown, which I use quite a lot otherwise.
It’s still hosted using GitHub Pages though, despite the strong recommendation to use Netlify. I want to keep my GitHub project pages. To do that I have two repos: one contains the source for this site, the other contains the built content that Hugo creates, by default to the
/public folder. See the bottom part of the instructions at https://bookdown.org/yihui/blogdown/github-pages.html.