sample files from a smithsonian project
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{% set image %}
|
||||
{% if content.field_header|render|striptags('<img>')|trim is not empty %}
|
||||
{{ content.field_header }}
|
||||
{% else %}
|
||||
<img src="/themes/custom/cdesai_emulsify/images/default.jpg" alt="" aria-hidden="true" />
|
||||
{% endif %}
|
||||
{% endset %}
|
||||
|
||||
{% include "@components/related-content/_related-content-item.twig" with {
|
||||
title: label,
|
||||
url: url,
|
||||
date: content|without('field_header'),
|
||||
media: image,
|
||||
header_id: 'related-card-' ~ node.id(),
|
||||
}%}
|
||||
Reference in New Issue
Block a user