diff --git a/assets/css/markdown.css b/assets/css/markdown.css index 9f06701..94a15f4 100644 --- a/assets/css/markdown.css +++ b/assets/css/markdown.css @@ -166,7 +166,7 @@ object-fit: cover; border-radius: 10px; margin-bottom: 20px; - margin-top: 50px; + margin-top: 20px; } /* ======================== diff --git a/content/about.de.md b/content/about.de.md index d1eb476..9c9f47e 100644 --- a/content/about.de.md +++ b/content/about.de.md @@ -16,6 +16,8 @@ Der Fachschaftsrat ist häufig die **erste Anlaufstelle** bei Problemen oder Fra jederzeit Unterstützung im Studium. +{{< image src="/images/panorama-teich.jpg" alt="Weitwinkeliges Panorama des Teichs am Andreas-Pfitzmann-Bau" >}} + ## \[celebration] Kulturelle und soziale Aktivitäten Zusätzlich nimmt der Fachschaftsrat auch die **kulturellen und sozialen Belange** der Studierenden wahr. Er organisiert regelmäßig: diff --git a/content/about.en.md b/content/about.en.md index bc2cf2b..ce46303 100644 --- a/content/about.en.md +++ b/content/about.en.md @@ -16,6 +16,8 @@ The Student Council is often the **first point of contact** for problems or ques to support you at all times during your studies. +{{< image src="/images/panorama-teich.jpg" alt="Wide-angle panorama of the pond at the Andreas Pfitzmann Building" >}} + ## \[celebration] Cultural and Social Activities In addition, the Student Council addresses the **cultural and social interests** of students. It regularly organizes: diff --git a/content/studium.de.md b/content/studium.de.md index c4468e6..ca39681 100644 --- a/content/studium.de.md +++ b/content/studium.de.md @@ -7,6 +7,8 @@ draft: false Hier findest du eine Zusammenstellung von hilfreichen Informationen rund ums Informatikstudium – egal ob du dich gerade dafür entscheidest, ins Ausland möchtest oder schon deinen Master planst. +{{< image src="/images/panorama-fakultaet.jpg" alt="Panoramaaufnahme des Andreas-Pfitzmann-Baus der TU Dresden" >}} + ## \[school] Studienangebot > Das komplette Studienangebot an der Fakultät Informatik findest du hier: [Studiengänge der Fakultät Informatik](https://tu-dresden.de/ing/informatik/studium/studienangebot) diff --git a/content/studium.en.md b/content/studium.en.md index 611d364..636ea10 100644 --- a/content/studium.en.md +++ b/content/studium.en.md @@ -7,6 +7,8 @@ draft: false Here you will find a collection of helpful information about studying computer science – whether you are just deciding, planning to go abroad, or already working on your master’s degree. +{{< image src="/images/panorama-fakultaet.jpg" alt="Panoramic view of the Andreas Pfitzmann Building at TU Dresden" >}} + ## \[school] Degree Programs > You can find the complete degree program offering at the Faculty of Computer Science here: [Degree Programs of the Faculty of Computer Science](https://tu-dresden.de/ing/informatik/studium/studienangebot) diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html new file mode 100644 index 0000000..fde0d8a --- /dev/null +++ b/layouts/shortcodes/image.html @@ -0,0 +1,15 @@ +{{ $src := .Get "src" }} +{{ $alt := .Get "alt" | default "" }} +{{ $img := resources.Get $src }} + +{{ if not $img }} + {{ errorf "Bild '%s' nicht gefunden. Achte darauf, dass es in /assets/ liegt." $src }} +{{ end }} + +{{ $resized := $img.Resize "1000x" }} + +{{ $alt }} \ No newline at end of file diff --git a/static/admin/config.yml b/static/admin/config.yml index a4660d6..19c7a01 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -6,7 +6,7 @@ backend: api_root: https://git.ifsr.de/api/v1 base_url: https://git.ifsr.de auth_endpoint: https://git.ifsr.de/login/oauth/authorize -media_folder: "static/images" +media_folder: "assets/images" public_folder: "/images" collections: