{% include site-header.html %}
{%- comment -%} Flatten the nav into one ordered sequence, then find prev/next. {%- endcomment -%}
{% assign flat = "" | split: "" %}
{% for section in site.data.nav %}{% assign flat = flat | concat: section.items %}{% endfor %}
{% assign prev = null %}
{% assign nxt = null %}
{% assign found = false %}
{% for item in flat %}
{% if found and nxt == null %}{% assign nxt = item %}{% endif %}
{% if item.url == page.url %}{% assign found = true %}{% endif %}
{% unless found %}{% assign prev = item %}{% endunless %}
{% endfor %}
{% include pager.html cls="pager-top" %}
{{ content }}
{% include pager.html cls="pager-bottom" %}
{% include site-footer.html %}