From e012381eefc1c7ae056b6e7db54b1d48d6163c0c Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Sun, 7 Apr 2024 14:04:00 +0200
Subject: [PATCH] Add FrogLabs logo to page

---
 .../projekte/hack-n-fun/freizeiten/froglabs/index.md   |  3 +++
 static/artwork                                         |  2 +-
 templates/shortcodes/hero_section.html                 | 10 +++++++++-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/content/projekte/hack-n-fun/freizeiten/froglabs/index.md b/content/projekte/hack-n-fun/freizeiten/froglabs/index.md
index 4b1c5e7b..6b13e389 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 dc1ec30e..9435e6ed 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 e2d61c52..db42bc08 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>
-- 
GitLab