简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM