Skip to content

Commit 8fc32c8

Browse files
Fix relative linkages
1 parent 3f87874 commit 8fc32c8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

_includes/prev_next.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<nav class="pager">
88
{% if prev_i >= 0 %}
99
{% assign prev_page = chapters[prev_i] %}
10-
<a class="prev" href="{{ prev_page.url }}">← {{ prev_page.title }}</a>
10+
<a class="prev" href="{{ prev_page.url | relative_url }}">← {{ prev_page.title }}</a>
1111
{% endif %}
1212
{% if next_i < chapters.size %}
1313
{% assign next_page = chapters[next_i] %}
14-
<a class="next" href="{{ next_page.url }}">{{ next_page.title }} →</a>
14+
<a class="next" href="{{ next_page.url | relative_url }}">{{ next_page.title }} →</a>
1515
{% endif %}
1616
</nav>
1717
{% endif %}

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h2>Table of Contents</h2>
44
{% assign chapters = site.chapters | sort: 'order' %}
55
{% for ch in chapters %}
66
<li class="{% if ch.url == page.url %}active{% endif %}">
7-
<a href="{{ ch.url }}">{{ ch.order }}. {{ ch.title }}</a>
7+
<a href="{{ ch.url | relative_url }}">{{ ch.order }}. {{ ch.title }}</a>
88
</li>
99
{% endfor %}
1010
</ul>

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Or jump to a chapter:
2323

2424
{% assign chapters = site.chapters | sort: 'order' | limit: 5 %}
2525
{% for ch in chapters %}
26-
- [{{ ch.order }}. {{ ch.title }}]({{ ch.url }})
26+
- [{{ ch.order }}. {{ ch.title }}]({{ ch.url | relative_url }})
2727
{% endfor %}
2828

2929
[View all chapters →]({{ "/book" | relative_url }})

pages/book.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Welcome to the complete guide to graph databases. This book covers everything fr
99

1010
{% assign chapters = site.chapters | sort: 'order' %}
1111
{% for ch in chapters %}
12-
{{ ch.order }}. [{{ ch.title }}]({{ ch.url }})
12+
{{ ch.order }}. [{{ ch.title }}]({{ ch.url | relative_url }})
1313
{% endfor %}
1414

1515
## About This Book

0 commit comments

Comments
 (0)