How to create exampleSite for a theme?

I wanted to create exampleSite for a theme but got some errors. I am using hugo v0.129.0+extended.

Steps to reproduce:

git clone https://github.com/CyrusYip/hugo-theme-yue.git
cd hugo-theme-yue
git reset --hard 70c4b61

# previewing works without exampleSite
hugo server

# create exampleSite
mkdir exampleSite
mv content exampleSite
mv hugo.yaml exampleSite

# preview and got errors
hugo server --source exampleSite/ --themesDir ../..

I got errors:

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

When I visit http://localhost:1313/en/, I got Page Not Found.

How to fix this problem?

theme: hugo-theme-yue

Adding this to hugo.yaml fixed the problem.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.