{%- assign classitemnext = "invisible" -%} {%- if page.next.url -%} {%- assign classitemnext = "" -%} {%- endif -%} {%- assign classitemprevious = "invisible" -%} {%- if page.previous.url -%} {%- assign classitemprevious = "" -%} {%- endif -%} {%- assign titleitemprevious = page.previous.title | strip_html | truncate: 30 -%} {%- assign titleitemnext = page.next.title | strip_html | truncate: 30 -%}