zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
798 stars 218 forks source link

single.html not rendering #97

Closed ruskinik closed 6 months ago

ruskinik commented 7 months ago

Created layouts/foo/single.html:

{{ define "main" }}
<p>This is a foo page</p>
{{ end }}

And content/english/foo/index.md:

---
title: "Foo page"
---

Going to localhost:1313/foo shows no content from single.html.

Repo and GitHub build.

tfsomrat commented 6 months ago

But I can see your Foo page https://ruskinik.github.io/hugoplate/foo/

ruskinik commented 6 months ago

It's missing <p>This is a foo page</p> though which means none of the html in single.html will be rendered, no?

tfsomrat commented 6 months ago

It should work, but somehow it's not working. and it's not the issue of this theme. you can try any theme or create a new theme by hugo new theme theme-name and you will get the same result.

what you can do is to create a layouts/foo/list.html file and content/foo/_index.md file, and you will get your expected result.