{% capture course_path %}{% route course, id: course.id %}{% endcapture %}

<a class="list-course col" href="{{ course_path }}" carousel='{{ property }}' {% if property == "latest" %} latest-order="{{ course.properties.latest_order }}" {% endif %}>
    <img class="list-course-image" src="{{ course.image_url }}">
    <div class="list-course-name">
        {{ course.name }}
    </div>
</a>