CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
5.01k stars 1.65k forks source link

[Bug]: Found no layout file for "HTML" for this kind... #836

Closed OzzieShazam closed 1 year ago

OzzieShazam commented 1 year ago

What happened?

localhost:1313 shows Page Not Found when trying to run the template locally (git clone then hugo serve). See log output.

Hugo version

hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended

Theme version

whatever https://github.com/CaiJimmy/hugo-theme-stack-starter uses

What browsers are you seeing the problem on?

Chrome

More information about the browser

Chrome Version 112.0.5615.49

Relevant log output

$ hugo serve

Start building sites …
hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended linux/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=gohugoio
WARN 2023/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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/07/08 02:33:45 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.

                   | EN
-------------------+-----
  Pages            |  7
  Paginator pages  |  0
  Non-page files   |  1
  Static files     |  0
  Processed images |  0
  Aliases          |  0
  Sitemaps         |  1
  Cleaned          |  0

Built in 4 ms
Watching for changes in /home/gelos/garbage/hugo-theme-stack-starter/content/{categories,page,post}
Watching for config changes in /home/gelos/garbage/hugo-theme-stack-starter/config/_default, /home/gelos/garbage/hugo-theme-stack-starter/go.mod
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Link to the page with bug

https://demo.stack.jimmycai.com

Link to the source repository

https://github.com/CaiJimmy/hugo-theme-stack-starter

brandonszeto commented 1 year ago

I don't think this is an error with this theme in particular. You likely misplaced the hugo-theme-stack directory. A discussion about this issue can be found here. It would be helpful if you could provide the file structure of your project to verify whether it aligns with Hugo's lookup order.