From 4a92336baa73702cd152d87883153fb8ea26f10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julia=20Ha=C3=9F?= <hulia.jass@gmail.com> Date: Wed, 25 Sep 2024 17:07:57 +0000 Subject: [PATCH] fix: homepage bugs --- content/{_index => }/index.de.md | 0 content/{_index => }/index.en.md | 0 content/infotreff/index.de.md | 8 ++++---- content/infotreff/index.en.md | 8 ++++---- data/de/homepage.yml | 2 +- layouts/_default/infotreff.html | 2 +- {content/_index/media => static/images}/banner.jpeg | Bin 7 files changed, 10 insertions(+), 10 deletions(-) rename content/{_index => }/index.de.md (100%) rename content/{_index => }/index.en.md (100%) rename {content/_index/media => static/images}/banner.jpeg (100%) diff --git a/content/_index/index.de.md b/content/index.de.md similarity index 100% rename from content/_index/index.de.md rename to content/index.de.md diff --git a/content/_index/index.en.md b/content/index.en.md similarity index 100% rename from content/_index/index.en.md rename to content/index.en.md diff --git a/content/infotreff/index.de.md b/content/infotreff/index.de.md index d816ec4..f87aee4 100644 --- a/content/infotreff/index.de.md +++ b/content/infotreff/index.de.md @@ -3,11 +3,11 @@ title: "InfoTreff" menu: "main" weight: 6 layout: infotreff -image: images/cafe.jpeg +image: cafe.jpeg --- -Der Treffpunkt für Studis, wo andere Informatik-Studis und Profs für euch leckeren Kaffee kochen. Kleine Snacks wie Schokoriegel, Eis, Müsli, Couscous-Salat und 5-Minuten-Terrinen gibt es natürlich auch! +Der Treffpunkt für Studis, wo andere Informatik-Studis und Profs für euch leckeren Kaffee kochen. Kleine Snacks wie Schokoriegel, Eis, Müsli, Couscous-Salat und 5-Minuten-Terrinen gibt es natürlich auch! -Es ist einfach der perfekte Ort, um neue Leute kennenzulernen, gemeinsam Zeit zu verbringen und leckeren Kaffee, Kakao oder Tee zu trinken! +Es ist einfach der perfekte Ort, um neue Leute kennenzulernen, gemeinsam Zeit zu verbringen und leckeren Kaffee, Kakao oder Tee zu trinken! -Kommt gerne einfach vorbei, wir freuen uns auf euch! \ No newline at end of file +Kommt gerne einfach vorbei, wir freuen uns auf euch! diff --git a/content/infotreff/index.en.md b/content/infotreff/index.en.md index e6fdd9c..9fa9c70 100644 --- a/content/infotreff/index.en.md +++ b/content/infotreff/index.en.md @@ -3,11 +3,11 @@ title: "InfoTreff - Café" menu: "main" weight: 6 layout: infotreff -image: images/cafe.jpeg +image: cafe.jpeg --- -The meeting place for students, where other computer science students and professors make delicious coffee for you. Small snacks such as chocolate bars, ice cream, muesli, couscous salad and 5-minute terrines are of course also available! +The meeting place for students, where other computer science students and professors make delicious coffee for you. Small snacks such as chocolate bars, ice cream, muesli, couscous salad and 5-minute terrines are of course also available! -It's simply the perfect place to meet new people, spend time together and drink delicious coffee, cocoa or tea! +It's simply the perfect place to meet new people, spend time together and drink delicious coffee, cocoa or tea! -Just drop by, we look forward to seeing you! \ No newline at end of file +Just drop by, we look forward to seeing you! diff --git a/data/de/homepage.yml b/data/de/homepage.yml index d77df23..2f86a06 100644 --- a/data/de/homepage.yml +++ b/data/de/homepage.yml @@ -1,6 +1,6 @@ banner: enable: true - image: "/images/banner.jpeg" + image: "content/media/banner.jpeg" items: - type: heading heading: Herzlich Willkommen! diff --git a/layouts/_default/infotreff.html b/layouts/_default/infotreff.html index f040d9e..e7c1c40 100644 --- a/layouts/_default/infotreff.html +++ b/layouts/_default/infotreff.html @@ -12,6 +12,6 @@ {{ .Content }} </section> - <img src="{{ .Params.image | relURL }}" class="col-6 col-12-narrower"> + <img src='{{.Page.Permalink}}media/{{.Param "image"}}' class="col-6 col-12-narrower"> </div> {{ end }} \ No newline at end of file diff --git a/content/_index/media/banner.jpeg b/static/images/banner.jpeg similarity index 100% rename from content/_index/media/banner.jpeg rename to static/images/banner.jpeg -- GitLab