{% from "../../macros/attributes.njk" import govukAttributes -%} {% set blockLevel = not params.items and (params.next or params.previous) -%} {%- set arrowPrevious -%} {%- endset -%} {%- set arrowNext -%} {%- endset -%} {%- macro _arrowLink(link, type = "next") %} {% set arrowType = arrowPrevious if type == "prev" else arrowNext %}
{% if blockLevel or type == "prev" %} {{- arrowType | safe | indent(4, true) }} {% endif %} {{ caller() | safe | trim }} {% if link.labelText and blockLevel %} : {{ link.labelText }} {% endif %} {% if not blockLevel and type == "next" %} {{- arrowType | safe | indent(4, true) }} {% endif %}
{% endmacro -%} {%- macro _pageItem(item) -%}
  • {% if item.ellipsis %} ⋯ {% else %} {{ item.number }} {% endif %}
  • {%- endmacro -%}