Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Previous Post and Next Post not working after moving blog items

Solved by Dean View solution

Started by Dean 8 months ago · 1 replies · 591 views
8 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

8 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 TomW, 2 weeks ago
8 225 8 hours ago
Support · by alex, 2 months ago
8 666 23 hours ago
Support · by Supple, 5 days ago
1 97 1 day ago
Support · by TomW, 1 week ago
3 158 3 days ago
Support · by TomW, 6 days ago
2 105 5 days ago