From a07c1b8ab88a000d7700950935def1ec7e15d7e2 Mon Sep 17 00:00:00 2001 From: Johannes Wachter Date: Tue, 24 Sep 2019 08:59:41 +0200 Subject: [PATCH] 01 - Add a header image to the homepage --- config/image-formats.xml | 10 ++++------ config/templates/pages/homepage.xml | 11 +++++++++++ templates/pages/homepage.html.twig | 3 +++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/config/image-formats.xml b/config/image-formats.xml index d3e0688..ff838bb 100644 --- a/config/image-formats.xml +++ b/config/image-formats.xml @@ -5,16 +5,14 @@ - diff --git a/config/templates/pages/homepage.xml b/config/templates/pages/homepage.xml index 8d1689a..34d20c0 100644 --- a/config/templates/pages/homepage.xml +++ b/config/templates/pages/homepage.xml @@ -36,6 +36,17 @@ + + + Header image + Titelbild + + + + + + + Article diff --git a/templates/pages/homepage.html.twig b/templates/pages/homepage.html.twig index d3a687b..8d718ad 100644 --- a/templates/pages/homepage.html.twig +++ b/templates/pages/homepage.html.twig @@ -3,6 +3,9 @@ {% block content %}
+ {% if content.headerImage|default %} + {{content.headerImage.title}} + {% endif %}

{{ content.title }}

{{ content.article|raw }}