{%- capture pageUrl %}/{{ link | downcase }}/{% endcapture -%} {% if pageUrl contains page.fileSlug and page.fileSlug %} {% if icon %} {% tablericon icon link %} {% else %} {{ link }} {% endif %} {% else %} {% if icon %} {% tablericon icon link %} {% else %} {{ link }} {% endif %} {% endif %}