You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The index.md file layout seems to use "layouts_default\single.html" as the template, however, index.md should use a list template because it is a page bundle according to https://gohugo.io/content-management/page-bundles/ so I wonder if I miss anything.
I found that the license text in the pages using my changed "layouts_default\list.html" layout stands out because it had a different style than it was in the page using "layouts_default\single.html", I want to know how to fix it instead of hiding the copyright license.
Target 2
I want to add a link back to the content section index (index.md) in the content page (blog post) , how can I write a partial template that create a link direct to the section (index.md or _index.md) where the content page locate.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been building my blog with this theme and want some help from the community before I move my content to hugo.
Target 1
I want to display the index content in the index page.
What I did
I have replace some code in "layouts_default\list.html" with {{ partial "article/article.html" . }}
Here is my edited layout https://github.com/Wonderer11/Wonderland/blob/main/layouts/_default/list.html
Here is my deployed page on github with my changed layout https://wonderer11.github.io/Wonderland/en/about/
I have to change the file name to _index.md so it will use the "layouts_default\list.html"
Problem
Target 2
I want to add a link back to the content section index (index.md) in the content page (blog post) , how can I write a partial template that create a link direct to the section (index.md or _index.md) where the content page locate.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions