7

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?

tstev
  • 607
  • 1
  • 10
  • 20
sheth7
  • 351
  • 2
  • 14

1 Answers1

7

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.

S J Cowtan
  • 322
  • 3
  • 11
  • 1
    this solves the issue (had the same problem). Is this also the reason for the kickstart error when trying to run blogdown::new_site(theme = 'gcushen/hugo-academic')? – Jakob Sep 20 '20 at 19:11
  • The development version of **blogdown** should work now: `remotes::install_github('rstudio/blogdown')`. I'll appreciate it if you could help test it! – Yihui Xie Oct 02 '20 at 03:46