mirror of
https://github.com/greenshot/greenshot
synced 2025-08-25 15:46:22 -07:00
Show post title in prev/next navigation
This commit is contained in:
parent
440401309f
commit
7aa8188749
1 changed files with 2 additions and 2 deletions
|
@ -11,12 +11,12 @@ layout: default
|
|||
{% for post in site.posts %}
|
||||
{% if found == true and nextset == false %}
|
||||
{% assign nextset = true %}
|
||||
<li class="next"><a href="{{ post.url | prepend: site.baseurl }}">Next post →</a></li>
|
||||
<li class="next"><a href="{{ post.url | prepend: site.baseurl }}">Next post: {{post.title}} →</a></li>
|
||||
{% endif %}
|
||||
{% if post.url == page.url %}
|
||||
{% assign found = true %}
|
||||
{% if previous != null %}
|
||||
<li class="previous"><a href="{{ previous.url | prepend: site.baseurl }}">← Previous post</a></li>
|
||||
<li class="previous"><a href="{{ previous.url | prepend: site.baseurl }}">← Previous post: {{previous.title}}</a></li>
|
||||
{% else %}
|
||||
<li class="previous disabled"><a href="#">← Previous post</a></li>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue