{namespace neos=Neos\Neos\ViewHelpers}
<li>
    <a class="c-button {buttonType}" href="{link}" {f:if(condition: openLinkInNewWindow, then: 'target="_blank" rel="noopener noreferrer"')}>
        <f:if condition="{searchQuery}">
            <f:then>
                {searchQuery}
            </f:then>
            <f:else>
                {linkTitle}
            </f:else>
        </f:if>
    </a>
</li>
