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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With