<div class="d-inline-flex">
    {{ if .Params.categories }}
        {{ with index .Params.categories 0 }}
            {{ if and (eq (printf "%T" .) "string") }}
                <a class="font-family-poppins font-small fw-medium uppercase" href="/{{ . | anchorize }}">{{ . }}</a>
            {{ else if and (eq (printf "%T" .) "map") }}
                {{ if .name }}
                    <a class="font-family-poppins font-small fw-medium uppercase" href="/{{ .name | anchorize }}">{{ .name }}</a>
                {{ end }}
            {{ end }}
        {{ end }}
    {{ end }}
</div>
