Use absolute paths instead of permalink

This makes links also work in deploy previews.
This commit is contained in:
Philipp Oppermann
2018-01-19 14:20:20 +01:00
parent 7a263355f3
commit 25441a8773
5 changed files with 9 additions and 9 deletions

View File

@@ -31,10 +31,10 @@
<hr>
<div class="PageNavigation">
{% if page.previous %}
<a class="prev" href="{{ page.previous.permalink | safe }}">&laquo; {{ page.previous.title }}</a>
<a class="prev" href="/{{ page.previous.path | safe }}">&laquo; {{ page.previous.title }}</a>
{% endif %}
{% if page.next %}
<a class="next" href="{{ page.next.permalink | safe }}">{{ page.next.title }} &raquo;</a>
<a class="next" href="/{{ page.next.path | safe }}">{{ page.next.title }} &raquo;</a>
{% endif %}
</div>