Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 1c1a32f0 authored by gilmarfdelima's avatar gilmarfdelima
Browse files

OEL-1191: Fix meta publication date and remove OEL-1026 patch.

parent f2335950
No related branches found
No related tags found
1 merge request!83OEL-1191: Fix News meta and spacing
......@@ -6,6 +6,7 @@ core_version_requirement: ^9.2
dependencies:
- oe_whitelabel:oe_whitelabel_helper
- oe_starter_content:oe_starter_content_news
- drupal:twig_default_value
config_devel:
install:
......
......@@ -4,17 +4,24 @@
* News full display.
*/
#}
{% set _meta = [] %}
{% if content.oe_publication_date is not empty %}
{% set _news_publication_date %}
{{ content.oe_publication_date|field_value }}
{% endset %}
{% endif %}
{% if _news_publication_date %}
{% set _meta = _meta|merge([content.oe_publication_date]) %}
{% endif %}
<article{{attributes}}>
{{ pattern('content_banner', {
background: 'gray',
title: label,
content: content.oe_summary,
image: image,
meta: [
content.oe_publication_date,
]
meta: _meta,
}) }}
<div class="container mt-md-4-75 mt-4">
<div class="row">
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8 mb-4">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment