{%- assign classitemnext = "invisible" -%} {%- if page.next.url -%} {%- assign classitemnext = "" -%} {%- endif -%} {%- assign classitemprevious = "invisible" -%} {%- if page.previous.url -%} {%- assign classitemprevious = "" -%} {%- endif -%}