Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Previous Post and Next Post not working after moving blog items

Solved by Dean View solution

Started by Dean 3 months ago · 1 replies · 48 views
3 months ago

I re-arranged my blog posts (jdmicro.com) into years, and now both the previous and next buttons point to the blog item rather than the previous or next item.

Essentially I created a folder for each year, and then moved them across.

Also, is there a way to prevent someone clicking on the year folder rather than the children?

cheers,

Dean

3 months ago Solution

I fixed it! In each folder I had to add to the blog_list.md the lines from content down (it previously only has the title) :


title: ‘2025’

content:
items:

  • ‘@self.children’
    leading: 0
    columns: 2
    limit: 5
    order:
    by: folder
    dir: asc
    show_date: false
    pagination: true
    url_taxonomy_filters: true

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 11 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago