Closed D4vidDG closed 1 year ago
Hi @D4vidDG, thank you for using the theme. I'm glad you like it. :slightly_smiling_face:
In order to render that page with the single template, you must rename foo.md
to be _index.md
. This will tell Hugo that it should be rendered as a single page. Other than that, all of your other configurations are correct!
Please let me know if this fixes your issue.
Heey. I did that and left everything else as it was. The problem is that now my page doesn't appear in the sidebar for some reason. However, when I type the URL of my page, it is displayed as it should.
If it helps:
I found the issue. I needed to provide a title and a date in the front matter so the page appears in the menu.
I don't know if this is related to the theme or my lack of experience with Hugo. Anyway, thanks again for your support! I'm closing this issue.
Awesome! I'm glad it's working now. 🙂
I'm having difficulty getting this to work. When I rename the file in the directory to _index.md, I get page with a title but no other text.
Here is the structure:
The _index.md file:
And here is what I'm seeing:
Using the layout: single (or layout = single) throws an error.
Have you tried following the format for the front matter that I showed in an image? Try replacing +++ with ---, and also change the equals signs (=) with two points (:)
Hi! Awesome theme, thank you for creating it.
I'm trying to add a new page different from about that does not render as a list but as a single page.
I added the page in the content folder and the config.toml as stated in the guide:
And the page's .md file has 'layout:single' in the frontmatter.
However, when loading the page, 'foo' is not rendered the same as 'about'. It seems like it's trying to be rendered as a list. Not sure why.
Thanks for your help!