How to organize content structure and add links back to the index? #1086
Unanswered
Wonderer11
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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