{%- comment -%} This prev/next template is used when an author uses: order: It is only useable in collections, hence prevnext-navigation exists :-) {%- endcomment -%} {%- if page.lang -%}{%- assign lang = page.lang -%}{%- else -%}{%- assign lang = "en" -%}{%- endif -%} {%- if page.order -%} {%- assign col = site.collections | where: "label", page.collection | first -%} {%- unless col.prevnext == false -%} {%- if page.group -%} {%- assign docs = col.docs | where: "group", page.group | where: "lang", lang -%} {%- else -%} {%- assign docs = col.docs | where: "lang", lang -%} {%- endif -%} {%- endunless -%} {%- endif -%}