rstudio / blogdown

Create Blogs and Websites with R Markdown
https://pkgs.rstudio.com/blogdown/
1.73k stars 335 forks source link

New versions of hugo and academic theme completely screw my web page #385

Closed luca-scr closed 5 years ago

luca-scr commented 5 years ago

I had a perfectly working web site built with blogdown using hugo-academic theme at http://www.stat.unipg.it/luca/ Now updating hugo and academic theme completely screw my website. It seems that several things changed in hugo and consequently on academic. How can I get back to a working environment where my old configuration would work as before? I'm not sure this is the right place to ask but I'm completely lost and googling I haven't been able to find any solution. Thanks.

luca-scr commented 5 years ago

Update: I was able to restore the correct versions to get my web site build again. For those interested here are the commands used in R

blogdown::install_hugo(version = "0.49.2", use_brew = FALSE)
blogdown::install_theme("https://github.com/gcushen/hugo-academic/archive/v2.4.0.zip", force = TRUE)

Thanks a lot for providing the install_hugo() and install_theme() functions.

yihui commented 5 years ago

Yes, you can (and probably should) lock your site to a specific version of Hugo. Thanks for sharing the solution!

melindahiggins2000 commented 4 years ago

Thank you @yihui and @luca-scr ! I had this exact problem today and your issue posting solved my blogdown::serve_site() problem with my site not looking correct. My site was originally built under Hugo v.0.41.