hugo-theme-jane
hugo-theme-jane copied to clipboard
模板日志是有问题吗
$ hugo server Start building sites … hugo v0.113.0-085c1b3d614e23d218ebf9daad909deaa2390c9a+extended windows/amd64 BuildDate=2023-06-05T15:04:51Z VendorInfo=gohugoio Built in 69 ms Error: error building site: assemble: "D:\hugo\sites\comor.cn\content\post\demo\6-shortcode-notice.md:25:1": failed to extract shortcode: template for shortcode "notice" not found
我也遇到问题 你解决了吗?
请提供更详细的信息,谢谢!
I ran into this too and found this issue (#363).
Quick Solution
The quick solution is to remove the file hugo.toml that Hugo created when "hugo new site NAME" ran.
More Details
It is in the documentation (please see quote and link below).
With v0.109.0 and earlier the basename of the site configuration file was config instead of hugo. You can use either, but should transition to the new naming convention when practical. Doc source
Permanent Fix
- Rename exampleSite/config.toml to exampleSite/hugo.toml
- At https://themes.gohugo.io/themes/hugo-theme-jane/, change Step 3 to copy exampleSite/hugo.toml instead of exampleSite/config.toml (which was renamed in step 1.