Open comor86 opened 1 year ago
我也遇到问题 你解决了吗?
请提供更详细的信息,谢谢!
I ran into this too and found this issue (#363).
The quick solution is to remove the file hugo.toml that Hugo created when "hugo new site NAME" ran.
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
$ 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