10

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?

Axeman
  • 32,068
  • 8
  • 81
  • 94
Frank Harrell
  • 1,954
  • 2
  • 18
  • 36
  • Could you run `blogdown::install_theme` with `force = TRUE`? Customizations to the theme would be lost though.. – Axeman Jul 23 '18 at 12:58

1 Answers1

11

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.

Yihui Xie
  • 28,913
  • 23
  • 193
  • 419