HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.28k stars 2.91k forks source link

Deleting example posts causing erros in build_site() #247

Closed washingtonsilva closed 7 years ago

washingtonsilva commented 7 years ago

Sorry for the basic question (newbie in GitHub/Hugo/Blogdown). I am building my site with the academic theme (using the Blogdown package) and everything is going well, however, when I delete example posts files from the content/posts folder, errors appear in build_site ().

For example, if I delete the widgets.md file (an example post) and use build_site(), I get

> blogdown::build_site()
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
9 regular pages created
14 other pages created
0 non-page files copied
1 paginator pages created
0 tags created
0 categories created
1 publication_types created
ERROR 2017/08/22 10:21:49 error processing shortcode "_internal/shortcodes/ref.html" for page "post\\getting-started.md": template: _internal/shortcodes/ref.html:1:73: executing "_internal/shortcodes/ref.html" at <ref .Page (.Get 0)>: error calling ref: No page found with path or logical name "post/widgets.md".

Am I forgetting to delete some reference to the deleted file?

The only shortcode I identified was {{% Alert note%}} By default, publications will be... {{% / Alert%}} I can not identify which file was referenced by the shortcode {{% alert note%}}, Is it really a shortcode?

Thanks.

washingtonsilva commented 7 years ago

the problem disappears after deleting all the example posts

oshanz commented 5 years ago

I'm also facing the same issue. only deleting those lines fixed the error.

Error: Error building site: "/repo/content/home/demo.md:66:5": failed to extract shortcode: template for shortcode "alert" not found

Hugo Static Site Generator v0.54.0/extended linux/amd64 BuildDate: 2019-02-01T18:13:18Z latest kickstart repo and theme repo