Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Issues with prev_post and next_post helpers #7015

Closed
kevinansfield opened this issue Jun 20, 2016 · 0 comments · Fixed by #7017
Closed

Issues with prev_post and next_post helpers #7015

kevinansfield opened this issue Jun 20, 2016 · 0 comments · Fixed by #7017
Assignees
Labels
bug [triage] something behaving unexpectedly
Milestone

Comments

@kevinansfield
Copy link
Member

We've had a report of bugs with {{prev_post}} and {{next_post}} helpers:

 <aside class="read-next">
    {{#next_post}}
    <a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
        <section class="post">
            <h2>{{title}}</h2>
            <p>{{excerpt words="19"}}&hellip;</p>
        </section>
    </a>
    {{/next_post}}
    {{#prev_post}}
    <a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
        <section class="post">
            <h2>{{title}}</h2>
            <p>{{excerpt words="19"}}&hellip;</p>
        </section>
    </a>
    {{/prev_post}}
</aside>

the prev_post and the next_post does not works, it output the last article in any post by next_post, the prev_post output nothing.

@AileenCGN has also observed this behaviour but exact reproduction steps are currently missing.

@kevinansfield kevinansfield added bug [triage] something behaving unexpectedly P2 - High [triage] High priority for immediate patch release labels Jun 20, 2016
@kevinansfield kevinansfield added this to the 0.9.0 milestone Jun 20, 2016
@kevinansfield kevinansfield removed the P2 - High [triage] High priority for immediate patch release label Jun 20, 2016
kirrg001 added a commit to kirrg001/Ghost that referenced this issue Jun 20, 2016
geekhuyang pushed a commit to geekhuyang/Ghost that referenced this issue Nov 20, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug [triage] something behaving unexpectedly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants