getSegment matching category title I'm trying to match the 2nd part of the slug with the category title to then place a 'current' class on the link.

Something like:

{% nav category in craft.categories.group('blogCategories') %}

    &lt;a class="button button--outline-blue {% if craft.request.getSegment(2) == '{{ category.title }}' %}current{% endif %}" href="{{ category.url }}"&gt;{{ category.title }}&lt;/a&gt;

{% endnav %}
You might do something like this, concerned that you want to set current on active category.

{% set categorySlug = craft.request.getLastSegment() %} 

{% nav category in craft.categories.group('blogCategories') %}
    {% set current = (category.slug == categorySlug) %}
    &lt;a class="button button--outline-blue 
       {% if current %} current{% endif %}
       href="{{ category.url }}"&gt;
       {{ category.title }}
    &lt;/a&gt;
{% endnav %}