hugo-tailwindcss-starter-theme: hugo server home page not found

Hi thank you very munch for your work

I installed your theme, followed all the instructions, but when I copy the example site into my project to have a sample, and I run hugo server, the site generation is successful but the homepage shows “page not found.” I have an _index.md in the content directory; should I have a page displayed? Also, I see the following error message:

WARN  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  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  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  found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Please read the installation instructions carefully!

Make sure to install postcss-cli and autoprefixer globally in your environment, as Hugo Pipe’s PostCSS requires it. This is mentioned in the Hugo Docs.

npm install -g postcss-cli
npm install -g autoprefixer

I see you opened a thread on the gohugo forums. The first response pointed to issue #7333 which indicates this is a known Hugo internal bug with paths on Windows, where a folder within this path contains a space. A quick fix for your use case would be to replaces the space in folder site valentin in your path with e.g. an underscore to site_valentin. Anyways, there is not much I can do as this is an upstream bug, so I will close this issue.

Hi ji ust tested it on my Zorin Linux environment, and I had no issues. The installation was quick and easy, as usual with Hugo.

I will try again on my Windows 10 environment following the advice you mentioned earlier, and I’ll provide a quick update here.