Skip to content

Commit 42055a0

Browse files
author
Ivan Stegic
committed
Merge branch 'joshcesana-styling-changes' into develop
2 parents 30f96bb + 37b5fe4 commit 42055a0

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

_layouts/page.html

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,28 @@ <h1 class="post-title">{{ page.title | escape }}</h1>
4242
<div class="pager column is-8">
4343

4444
{% if page.back_title %}
45-
{% assign prev_title = page.back_title %}
45+
{% assign prev_title = page.back_title -%}
4646
{% elsif page.previous.title %}
4747
{% assign prev_title = page.previous.title -%}
48-
{% elsif page.url != '/' %}
49-
{% assign prev_title = "Home" %}
48+
{% endif %}
49+
50+
{% assign prev_url = page.previous.url %}
51+
52+
{% if page.url == site.pages.first.url %}
53+
54+
{% if page.back_title %}
55+
{% assign prev_title = page.back_title %}
56+
{% else %}
57+
{% assign prev_title = "Home" -%}
58+
{% endif %}
59+
60+
{% assign prev_url = '/' %}
61+
5062
{% endif %}
5163

5264
{% if prev_title %}
5365
<div class="pager-previous">
54-
<a href="{{ page.previous.url }}" class="pager-link" title="{{ page.previous.title }}">
66+
<a href="{{ prev_url }}" class="pager-link" title="{{ page.previous.title }}">
5567
<span class="pager-arrow pager-arrow--left">
5668
<svg width="15" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 5.813H1M5.813 10.625 1 5.812 5.813 1" stroke="#6330F4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
5769
</span>

0 commit comments

Comments
 (0)