Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

prevSibling and nextSibling not working in blog with moved posts

Started by Dieter Tremel 8 years ago · 0 replies · 767 views
8 years ago

Starting with grav-skeleton-blog-site I moved the blog from the home page to another page to have it visible only inside a member area. Homepage is similar to the one-page skeleton.

This works, but the previous and next buttons from blog-item.html.twig always point to the blog item itself, not to the siblings. A pageing inside the post is not possible. What did I make wrong, how can I fix this? What is the purpose of the blog_url: /mitglieder setting in blog.md and in item.md?

My configuration:

YAML
ls pages/05.mitglieder/
01.personalverwaltung  02.download  blog.de.md  glass-2006766_1920.jpg  posts

pages/05.mitglieder/blog.de.md:
blog_url: /mitglieder
...
content:
    items:
        -
            '@page.children': /mitglieder/posts
    limit: 6
    order:
        by: date
        dir: desc
    pagination: true
    url_taxonomy_filters: true

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 11 months ago
6 962 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 764 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 676 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 602 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 985 2 years ago