Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practice for updating Hugo academic theme installed with install_hugo()

Tags:

git

r

hugo

blogdown

Since I did not use git clone to install the Hugo academic theme with R blogdown, and since I use my own git repository to manage the entire blogdown directory structure (which includes theme) it seems to be complicated to use git to update the academic theme as discussed here. What is the best approach for updating the academic theme on an existing R blogdown structure?

like image 436
Frank Harrell Avatar asked Jul 23 '18 12:07

Frank Harrell


People also ask

How do I update Hugo theme?

Hugo themes are easy to add and swap, simply copy or pull the theme files to your site's themes folder and update the config. toml "theme" property to the name of the theme folder.


1 Answers

Personally I'd recommend not to update a Hugo theme unless you run into theme bugs or see new features in the newer version of the theme that you really need. It is kind of unpredictable what will happen if you update a theme. That said, I use git submodules to manage Hugo themes myself (and I don't update the submodule unless I really need a newer version). There is more information about this in the Appendix D.7 of the blogdown book.

like image 129
Yihui Xie Avatar answered Oct 28 '22 04:10

Yihui Xie