Skip to content

Commit d3f6e82

Browse files
author
Robin Marillia
committed
fix: add baseurl to prev and next links to fix the 404 error in production on github pages
1 parent a7abf9d commit d3f6e82

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ GEM
9898
faraday (> 0.8, < 2.0)
9999

100100
PLATFORMS
101+
universal-darwin-21
101102
x86_64-linux
102103

103104
DEPENDENCIES

docs/_layouts/guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ <h1 class="mb-4 f0-light">{{ page.title }}</h1>
2727
<div class="mt-4">
2828
<nav class="prev-next-links" aria-label="Pagination">
2929
{% if prev %}
30-
<a class="prev-next-links__button" rel="previous" href="{{prev.url}}" aria-label="Previous Page">
30+
<a class="prev-next-links__button" rel="previous" href="{{ site.baseurl }}{{prev.url}}" aria-label="Previous Page">
3131
<div class="f6 text-uppercase">Previous</div>
3232
{{prev.title}}
3333
</a>
3434
{% endif %} {% if next %}
35-
<a class="prev-next-links__button" rel="next" href="{{next.url}}" aria-label="Next Page">
35+
<a class="prev-next-links__button" rel="next" href="{{ site.baseurl }}{{next.url}}" aria-label="Next Page">
3636
<div class="f6 text-uppercase">Next</div>
3737
{{next.title}}
3838
</a>

0 commit comments

Comments
 (0)