{% set type = button.type is null ? "primary" : button.type %}
{% set distabled_state = button.disabled is null ? false : button.disabled %}
{% set disabled_class = distabled_state == true ? " disabled" : "" %}
{% set target = button.target == "" ? "_self" : button.target %}
<a class="btn btn-{{ type }}{{ disabled_class }}" role="button" aria-disabled="{{ distabled_state }}" href="{{ button.url }}" target="{{ target }}">
{{ button.title }}
</a>