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

Skip to content
Snippets Groups Projects
Unverified Commit ebeab6af authored by Szilagyi Andras's avatar Szilagyi Andras Committed by GitHub
Browse files

Merge pull request #83 from openeuropa/OEL-1191

OEL-1191: Fix News meta and spacing.
parents f2335950 6e87e6b8
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ core_version_requirement: ^9.2
dependencies:
- oe_whitelabel:oe_whitelabel_helper
- oe_starter_content:oe_starter_content_news
- drupal:twig_field_value
config_devel:
install:
......
......@@ -4,18 +4,26 @@
* News full display.
*/
#}
{% if not node.oe_publication_date.isEmpty() %}
{% set _meta = [] %}
{% set _news_publication_date %}
{{ content.oe_publication_date|field_value }}
{% endset %}
{% 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,
attributes: create_attribute().addClass(['ps-0']),
}) }}
<div class="container mt-md-4-75 mt-4">
<div class="mt-md-4-75 mt-4">
<div class="row">
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8 mb-4">
{{ content.body }}
......
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