Sophia
September 5, 2023, 11:27am
1
I’m using Hugo v0.118.2, using Zwbetz’s Cupper. This randomly happens
it should look like this
---
date: "06-07-2021"
title: "Misc Info"
---
## Table Of Contents
### [Project Info](/info/project)
### [Campo Santo](/info/camposanto)
### [Firewatch](/info/firewatch)
I have tried toc: false
in my Yaml file and per page, Sometimes it works and renders the page correctly but most times it renders like it’s shown above.
Any suggestions?
Sophia:
Sometimes it works
Without access to your project I am just guessing, but this sounds like it might be a page collision. What do you see when you run:
hugo --printPathWarnings
Sophia
September 5, 2023, 2:49pm
3
Running the command got me
WARN Duplicate target paths: \info\index.html (2)
I had /content/info
and /content/info.md
so I moved /content/info.md
to /content/info/_index.md
But it still does not show the correct content.
Project files can be found here
and a fully rendered site here
Thanks in advance
OK, you’ve resolved the page collision.
Now let’s look at why you aren’t seeing what you want to see.
This content page:
content/info/_index.md
is rendered by:
https://github.com/ProjectFirewatch/ProjectFirewatchV2/blob/main/themes/cupper-hugo-theme/layouts/_default/list.html
That template does not contain {{ .Content }}
anywhere, so the content of content/info/_index.md
is not rendered.
Sophia
September 5, 2023, 3:18pm
5
Ahhh, Ok I see! Thanks for clearing that up.
system
Closed
September 7, 2023, 3:19pm
6
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.