Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Blogdown Hugo academic theme not rendering site

I am trying to create a website using R Blogdown Hugo-Academic theme. Typically, I would create a website by running the following commands:

blogdown::new_site(theme = 'gcushen/hugo-academic')
blogdown::serve_site()

But I am getting an error

failed to extract shortcode: template for shortcode "alert" not found

I found a related github issue here:

But it seems like gcushen/hugo-academic is shifting to wowchemy

How to resolve this?

like image 250
sheth7 Avatar asked Sep 03 '20 15:09

sheth7


1 Answers

I had the same problem, and resolved it by editing my config.toml file:

Check that your theme is set correctly (mine was):

# Name of Academic theme folder in `themes/`.
theme = "wowchemy-hugo-modules"

Append to the end:

[module]
  [[module.imports]]
    path = "wowchemy-hugo-modules/wowchemy"

as per https://wowchemy.com/docs/install-locally/

Then stop_server() and serve_site() as usual.

like image 97
S J Cowtan Avatar answered Nov 15 '22 07:11

S J Cowtan