在Mac装Hugo也太简单了。
@juju 说起来我新建文章的时候遇见一个报错,你有碰到过吗?
panic: [BUG] no Page found for "/Users/mantyke/hugo-stack/content/weekly/2022/0807-周记.md"
goroutine 1 [running]:
github.com/gohugoio/hugo/create.(*contentBuilder).applyArcheType(0x1400065c600, {0x14000987b00, 0x3c}, {0x1400046a360, 0xa})
github.com/gohugoio/hugo/create/content.go:276 +0x238
github.com/gohugoio/hugo/create.(*contentBuilder).buildFile(0x1400065c600)
github.com/gohugoio/hugo/create/content.go:244 +0x184
github.com/gohugoio/hugo/create.NewContent.func1()
github.com/gohugoio/hugo/create/content.go:104 +0x258
github.com/gohugoio/hugo/create.NewContent(0x140001f09c0, {0x0, 0x0}, {0x16d0cfb51, 0x22})
github.com/gohugoio/hugo/create/content.go:108 +0x4ec
github.com/gohugoio/hugo/commands.(*newCmd).newContent(0x1400038ef30, 0x1400048e500, {0x140004827a0, 0x1, 0x0?})
@[email protected] 没有哎,我到现在用的都是 v0.86
看到一个issue,文件名重复了,不知道你有没有相似的情况
https://github.com/gohugoio/hugo/issues/9204
@juju 没有,看了一下其他的issue,好像也没有完全解决。
我自己测试只要创建文件在post文件夹中就没问题,但如果在weekly之类的文件夹里就会报错。暂时先这么用着吧。
@[email protected] 对呀,Linux 也是只要一条命令,就 windows 事多