wjh18 / hugo-liftoff

Minimal blog/portfolio theme with a focus on content creation and SEO best practices. An ideal choice for technical users jump-starting a personal brand.
https://hugo-liftoff.netlify.app
MIT License
93 stars 27 forks source link

Module "hugo-liftoff" is not compatible with hugo v0.111.3+extended linux/amd64 #40

Open djp841 opened 8 months ago

djp841 commented 8 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: COPY Directories config content

REMOVE config.toml

hugo server

Bug/Error is in config directory

hugo server WARN 2023/12/26 16:17:38 Module "hugo-liftoff" is not compatible with this Hugo version; run "hugo mod graph" for more information. panic: runtime error: slice bounds out of range [1:0]

goroutine 1 [running]: github.com/gohugoio/hugo/resources/page.PermalinkExpander.validate({0xc000326240?, 0x0?, 0xc000317cb0?}, {0x0?, 0x0?}) github.com/gohugoio/hugo/resources/page/permalinks.go:183 +0x23b github.com/gohugoio/hugo/resources/page.PermalinkExpander.parse({0xc000326240?, 0x0?, 0xc000317cb0?}, 0x8?) github.com/gohugoio/hugo/resources/page/permalinks.go:126 +0x136 github.com/gohugoio/hugo/resources/page.NewPermalinkExpander(0xc000317cb0) github.com/gohugoio/hugo/resources/page/permalinks.go:95 +0x7a5 github.com/gohugoio/hugo/resources.NewSpec(0xc000317cb0, 0xc000317ce0, {0x26982a0, 0xc00035ebe8}, {0x26b69f0, 0xc0003167b0}, {0x26982c0?, 0xc00014abe8}, 0xc0001f4640, {0xc000770600, ...}, ...) github.com/gohugoio/hugo/resources/resource_spec.go:76 +0x205 github.com/gohugoio/hugo/deps.New({{0x26b69f0, 0xc0003167b0}, 0xc000278d20, 0xc000686700, {0x0, 0x0}, {0x26b3f40, 0xc00013a960}, {0xc0002fe000, 0x23, ...}, ...}) github.com/gohugoio/hugo/deps/deps.go:291 +0x705 github.com/gohugoio/hugo/hugolib.configLoader.applyDeps({{0x0, 0x0}, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, ...}}, ...) github.com/gohugoio/hugo/hugolib/hugo_sites.go:518 +0x31e github.com/gohugoio/hugo/hugolib.newHugoSites({{0x26b69f0, 0xc0003167b0}, 0xc000278d20, 0x0, {0x0, 0x0}, {0x26b3f40, 0xc00013a960}, {0x0, 0x0, ...}, ...}, ...) github.com/gohugoio/hugo/hugolib/hugo_sites.go:405 +0x766 github.com/gohugoio/hugo/hugolib.NewHugoSites({{0x26b69f0, 0xc0003167b0}, 0xc000278d20, 0x0, {0x0, 0x0}, {0x26b3f40, 0xc00013a960}, {0x0, 0x0, ...}, ...}) github.com/gohugoio/hugo/hugolib/hugo_sites.go:554 +0x158 github.com/gohugoio/hugo/commands.(commandeer).loadConfig.func3() github.com/gohugoio/hugo/commands/commandeer.go:501 +0x8d8 sync.(Once).doSlow(0xc00013a960?, 0x1fb730b?) sync/once.go:74 +0xc2 sync.(Once).Do(...) sync/once.go:65 github.com/gohugoio/hugo/commands.(commandeer).loadConfig(0xc000020d00) github.com/gohugoio/hugo/commands/commandeer.go:426 +0xaaa github.com/gohugoio/hugo/commands.newCommandeer(0x1, 0x1, 0x1, 0xc0002e7770, {0x2698240?, 0xc000492fc0}, 0xc000375360, {0x0, 0x0, 0x0}) github.com/gohugoio/hugo/commands/commandeer.go:227 +0x31f github.com/gohugoio/hugo/commands.initializeConfig(0x0?, 0x0?, 0x0?, 0x1f9c039?, {0x2698240?, 0xc000492fc0?}, 0x0?) github.com/gohugoio/hugo/commands/hugo.go:125 +0x3b github.com/gohugoio/hugo/commands.(serverCmd).server(0xc000492fc0, 0xc0007be300, {0x0?, 0x0?, 0x0?}) github.com/gohugoio/hugo/commands/server.go:257 +0x1cd github.com/gohugoio/hugo/commands.(commandsBuilder).newServerCmdSignaled.func1(0xc0007be300?, {0x3743198?, 0x0?, 0x0?}) github.com/gohugoio/hugo/commands/server.go:96 +0x36 github.com/spf13/cobra.(Command).execute(0xc0007be300, {0x3743198, 0x0, 0x0}) github.com/spf13/cobra/command.go:916 +0x862 github.com/spf13/cobra.(Command).ExecuteC(0xc000636300) github.com/spf13/cobra/command.go:1044 +0x3bd github.com/gohugoio/hugo/commands.Execute({0xc000040050, 0x1, 0x1}) github.com/gohugoio/hugo/commands/hugo.go:92 +0xbd main.main() github.com/gohugoio/hugo/main.go:23 +0x56