Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模板日志是有问题吗 #363

Open
comor86 opened this issue Jun 11, 2023 · 3 comments
Open

模板日志是有问题吗 #363

comor86 opened this issue Jun 11, 2023 · 3 comments

Comments

@comor86
Copy link

comor86 commented Jun 11, 2023

$ 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
Copy link

cometlj commented Jun 16, 2023

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

@xianmin
Copy link
Owner

xianmin commented Jan 5, 2024

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

@72757373656c6c
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants