CaiJimmy / hugo-theme-stack-starter

A quickstart template to create a Hugo blog using hugo-theme-stack
https://demo.stack.jimmycai.com
MIT License
305 stars 105 forks source link

No Layout for several files #18

Closed marcoberlot1 closed 10 months ago

marcoberlot1 commented 1 year ago

Hey, first, thank you for all the work you've done for the source code. I've been able to use it for a couple of weeks, but suddenly I got this error. I got my version cloning the repo as described in the readme

hugo v0.111.3+extended darwin/arm64 BuildDate=unknown

WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "term": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "term": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for layout "search" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for layout "archives" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/04/09 19:54:37 found no layout file for "JSON" for layout "search" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
GuiQuQu commented 1 year ago

I also meet this problem. I solve it by add a new config in ./config/_defautl/config.toml, you need add theme = "hugo-theme-stack" the author forgert this settings, if you didn't add this , even you can`t find home page

CaiJimmy commented 10 months ago

Sorry for the late reply.

I have not been able to reproduce this problem using the starter template. Adding theme = should not be necessary as Hugo mounts the whole theme into the project directory, not in the themes/ directory. (https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme)

I'm going to close this issue, as it hasn't received any new comments since April. Feel free to reopen it if the problem persists.