xianmin / hugo-theme-jane

A readable & concise theme for Hugo
https://xianmin.github.io/hugo-theme-jane/
MIT License
918 stars 285 forks source link

模板日志是有问题吗 #363

Open comor86 opened 1 year ago

comor86 commented 1 year ago

$ 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

cometlj commented 1 year ago

我也遇到问题 你解决了吗?

xianmin commented 8 months ago

请提供更详细的信息,谢谢!

72757373656c6c commented 7 months ago

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

  1. Rename exampleSite/config.toml to exampleSite/hugo.toml
  2. 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.