Finally a nice solution for mapping relative urls

This commit is contained in:
Brandon Mathis
2011-07-21 23:50:32 -04:00
parent 44e1351fc7
commit 39d56bc988
13 changed files with 38 additions and 29 deletions

View File

@ -14,13 +14,13 @@ footer: false
<nav role="pagination">
<div>
{% if paginator.next_page %}
<a class="prev" href="{{ site.root }}/page{{paginator.next_page}}/">&larr; Older</a>
<a class="prev" href="/page{{paginator.next_page}}/">&larr; Older</a>
{% endif %}
<a href="{{ site.root }}/blog/archives">Blog Archives</a>
<a href="/blog/archives">Blog Archives</a>
{% if paginator.previous_page and paginator.previous_page > 1 %}
<a class="next" href="{{ site.root }}/page{{paginator.previous_page}}/">Newer &rarr;</a>
<a class="next" href="/page{{paginator.previous_page}}/">Newer &rarr;</a>
{% elsif paginator.previous_page %}
<a class="next" href="{{ site.root }}/">Newer &rarr;</a>
<a class="next" href="/">Newer &rarr;</a>
{% endif %}
</div>
</nav>