{% assign pages = site.pages | where: 'title', include.reference %}
{% for somePage in pages %}
{% if somePage.card_url %}
    {% assign url = site.baseurl | append: somePage.card_url %}
{% else %}
    {% assign url = site.baseurl | append: somePage.url %}
{% endif %}

{% include card_layout page=somePage lk=url %}

{% endfor %}