Fix page.html

pull/732/head
Mattia Iavarone 5 years ago
parent c0dab05063
commit e6ec1a15ac
  1. 14
      docs/_layouts/page.html

@ -12,19 +12,19 @@ layout: main
</div> </div>
<div class="page-footer border-top has-divider"> <div class="page-footer border-top has-divider">
<div class="row text-center"> <div class="row text-center">
{% assign collection = site.collections | where:"label", page.collection | first %}
{% assign next = page.order | plus: 1 %} {% assign next = page.order | plus: 1 %}
{% assign previous = page.order | minus: 1 %} {% assign previous = page.order | minus: 1 %}
{% for other in site.categories[page.category] %} {% for doc in collection.docs %}
{% if other.order == previous %} {% if doc.order == previous %}
<a class="previous col mt-3" href="{{ site.baseurl }}{{ other.url }}">< {{ other.title }}</a> <a class="previous col mt-3" href="{{ site.baseurl }}{{ doc.url }}">< {{ doc.title }}</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for other in site.categories[page.category] %} {% for doc in collection.docs %}
{% if other.order == next %} {% if doc.order == next %}
<a class="next col mt-3" href="{{ site.baseurl }}{{ other.url }}">{{ other.title }} ></a> <a class="next col mt-3" href="{{ site.baseurl }}{{ doc.url }}">{{ doc.title }} ></a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
</div> </div>

Loading…
Cancel
Save