{% if cfield_data.value is not empty %}
  <div class="castorcito--field-link castorcito--field">
    <a class="castorcito--field-link--link"
      href="{{ cfield_data.external
        ? cfield_data.value
        : drupal_url(cfield_data.relative) }}"
      {{ cfield_data.target ? 'target=' ~ cfield_data.target }}>

      {% if cfield_data.text is not empty %}
        {{ cfield_data.text }}
      {% else %}
        {{ cfield_data.external ? cfield_data.value : drupal_url(cfield_data.relative) }}
      {% endif %}

    </a>
  </div>
{% endif %}
