{% set title = resource.name %} {% set body = h.markdown_extract(resource.description, 120)|urlize %} {{ ui.card(title=title, body=body, href=h.url_for("resource.read", id=resource.package_id, resource_id=resource.id), **kwargs) }}