diff --git a/content/projekte/hack-n-fun/freizeiten/froglabs/index.md b/content/projekte/hack-n-fun/freizeiten/froglabs/index.md index 4b1c5e7b3c44727ebce5b7385ad74b6443574fe2..6b13e38909b905c21d13cbad72e0259c8471b309 100644 --- a/content/projekte/hack-n-fun/freizeiten/froglabs/index.md +++ b/content/projekte/hack-n-fun/freizeiten/froglabs/index.md @@ -4,6 +4,9 @@ description = "Als Nachwuchs zu Besuch bei Open-Source-Konferenzen" template = "pages/raw.html" +[extra.title] +image = "artwork/banner-froglabs.svg" + [extra.depiction] image = "froscon_kinder.jpg" alt = "Große Gruppe Kinder am Eingang der Hochschule Bonn-Rhein-Sieg bei der FrOSCon" diff --git a/static/artwork b/static/artwork index dc1ec30e6440ae475d4e89560cef56c9dfbf653d..9435e6edd1b714a41480d7b5dcd9d8dc94d47030 160000 --- a/static/artwork +++ b/static/artwork @@ -1 +1 @@ -Subproject commit dc1ec30e6440ae475d4e89560cef56c9dfbf653d +Subproject commit 9435e6edd1b714a41480d7b5dcd9d8dc94d47030 diff --git a/templates/shortcodes/hero_section.html b/templates/shortcodes/hero_section.html index e2d61c529abc40edd1dfe40e08f98e75307d9c8c..db42bc08ccddb9268ef1d613b10eb4b7a5b2fd8b 100644 --- a/templates/shortcodes/hero_section.html +++ b/templates/shortcodes/hero_section.html @@ -6,7 +6,15 @@ <div class="hero-body pl-0 pr-0"> <div class="container has-text-centered {% if background_transparent %}is-transparent{% endif %}"> <div class="box is-radiusless"> - <h1 class="title is-1 mb-5">{{ title | default(value=page.title) | safe }}</h1> + <h1 class="title is-1 mb-5"> + {% if page.extra.title.image -%} + <figure> + <img src="{{ get_url(path=page.extra.title.image) }}" alt="{{ title | default(value=page.title) | safe }}" /> + </figure> + {% else -%} + {{ title | default(value=page.title) | safe }} + {% endif %} + </h1> {% if body or page.description %}<p class="subtitle">{{ body | default(value=page.description) | safe }}</p>{% endif -%} </div> </div>