<div class="cat_tabs">
    {% for category in categories %}
        <a href="{{ 'category'|page({ slug: category.slug }) }}" 
            class="tab_link {{ __SELF__.property('slug') == category.slug ? 'active' : '' }}">
            {{ category.name }}
        </a>
    {% endfor %}
</div>
