Browse Source

Fix pagination and 404 links

gh-pages
Alex Williams 3 years ago
parent
commit
cf0d61532e
Signed by: aw GPG Key ID: 19EE4AAA361A7E2C
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      404.html
  2. +3
    -3
      index.html

+ 1
- 1
404.html View File

@@ -6,5 +6,5 @@ permalink: 404.html

<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}">Head back home</a> to try finding it again.</p>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.url }}">Head back home</a> to try finding it again.</p>
</div>

+ 3
- 3
index.html View File

@@ -21,15 +21,15 @@ title: Home

<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ site.baseurl }}page{{paginator.next_page}}">Older</a>
<a class="pagination-item older" href="/page{{paginator.next_page}}">Older</a>
{% else %}
<span class="pagination-item older">Older</span>
{% endif %}
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="pagination-item newer" href="{{ site.baseurl }}">Newer</a>
<a class="pagination-item newer" href="/">Newer</a>
{% else %}
<a class="pagination-item newer" href="{{ site.baseurl }}page{{paginator.previous_page}}">Newer</a>
<a class="pagination-item newer" href="/page{{paginator.previous_page}}">Newer</a>
{% endif %}
{% else %}
<span class="pagination-item newer">Newer</span>


Loading…
Cancel
Save