Skip to content

Commit

Permalink
Better next/prev visibility
Browse files Browse the repository at this point in the history
- for showing the problems with next/prev posts more clearly
  • Loading branch information
ErisDS committed Aug 7, 2023
1 parent 1ca0058 commit f6f807b
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,6 @@ into the {body} tag of the default.hbs template --}}
{{content}}
</section>

<section>
Previous Post
{{#prev_post}}
<a href="{{url}}">{{title}}</a>
{{/prev_post}}
</section>

<section>
Next Post
{{#next_post}}
<a href="{{url}}">{{title}}</a>
{{/next_post}}
</section>

{{#if comments}}
<section class="article-comments gh-canvas">
Expand Down Expand Up @@ -128,6 +115,19 @@ into the {body} tag of the default.hbs template --}}
{{/unless}}
{{/if}}

<aside class="read-more-wrap outer">
<div class="read-more inner">
<h2>Previous Post:</h2>
{{#prev_post}}
{{> "post-card"}}
{{/prev_post}}
<h2>Next Post:</h2>
{{#next_post}}
{{> "post-card"}}
{{/next_post}}

</div>
</aside>

{{!-- Read more links, just above the footer --}}
{{#if @custom.show_recent_posts_footer}}
Expand All @@ -140,6 +140,7 @@ into the {body} tag of the default.hbs template --}}

{{#if more_posts}}
<aside class="read-more-wrap outer">
<h2>3 Recent Posts:</h2>
<div class="read-more inner">
{{#foreach more_posts}}
{{> "post-card"}}
Expand Down

0 comments on commit f6f807b

Please sign in to comment.