Skip to content

Commit

Permalink
Add site.baseurl to next/prev links
Browse files Browse the repository at this point in the history
When deploying publiccodenet.github.io/community-translations-standard
we noticed that the base url was not being included.
This is not an issue for the Standard site as the baseurl is "/".

Co-authored-by: Jan Ainali <ainali.jan@gmail.com>
  • Loading branch information
ericherman and Ainali committed Feb 3, 2022
1 parent c192a53 commit 42bf59a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _includes/prev_next.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
{% for otherpage in sorted %}
{% if otherpage.order == prev_order %}
<span id="span-prev" class="theme-prev-next-prev"><a
href="{{ otherpage.url }}">&#8592; {{ otherpage.title }}</a></span>
href="{{site.baseurl}}{{ otherpage.url }}"
>&#8592; {{ otherpage.title }}</a></span>
{% endif %}
{% if otherpage.order == next_order %}
<span id="span-next" class="theme-prev-next-next"><a
href="{{ otherpage.url }}">{{ otherpage.title }} &#8594;</a></span>
href="{{site.baseurl}}{{ otherpage.url }}"
>{{ otherpage.title }} &#8594;</a></span>
{% endif %}
{% endfor %}
</span><!-- span-prev-next -->

0 comments on commit 42bf59a

Please sign in to comment.