{namespace neos=Neos\Neos\ViewHelpers}
{namespace fusion=Neos\Fusion\ViewHelpers}
{namespace vh=Newland\NeosViewHelpers\ViewHelpers}

<div class="c-magazine-tag-buttons spacing-top--sm">
    <div class="c-magazine-tag-buttons__left">
        <a class="c-magazine-button c-button--white c-button--tag {f:if(condition: isMagazineRootPage, then: 'active')}"
            href="{neos:uri.node(node: magazineRootPage)}">

            Alle Geschichten
        </a>
    </div>

    <div class="c-magazine-tag-buttons__right">
        <f:for each="{allTags}" as="tag" iteration="iterator">
            <a href="{neos:uri.node(node: tag)}"
                class="c-magazine-button c-button--white c-button--tag {f:if(condition: '{tag.identifier} == {node.identifier}', then: 'active')}">

                {tag.properties.title}
            </a>
        </f:for>
    </div>
</div>
