I have several sections with multiple posts. In the list.html template I render all the posts for each section and in the single.html template I show each post.
How do I create a link in single.html that directs back to list.html for each section?
Example: I’m viewing post/firstpost.html and I want to click on a link that redirects to post.html. I’m viewing project/firstpost.html and I want to click on a link that redirects to project.html
Layout:
.
└── layouts
├── _default
| |── list.html
| |── single.html
├── section
|── post.html
|── project.html
Content:
.
└── content
├── post
| ├── firstpost.md
| └── secondpost.md
└── project
├── firstpost.md
└── secondpost.md