Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids.org
Commits
2b97ef2b
Unverified
Commit
2b97ef2b
authored
2 weeks ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Feature more than one event on front page
parent
e213cca1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#196402
passed with warnings
2 weeks ago
Stage: test
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
events.json
+6
-3
6 additions, 3 deletions
events.json
templates/frontpage/events.html
+16
-4
16 additions, 4 deletions
templates/frontpage/events.html
with
22 additions
and
7 deletions
events.json
+
6
−
3
View file @
2b97ef2b
...
@@ -17,19 +17,22 @@
...
@@ -17,19 +17,22 @@
"description"
:
"Große Sommerfreizeit in Bonn-Bad Godesberg mit Coding-Workshops, Spiel und Spaß"
,
"description"
:
"Große Sommerfreizeit in Bonn-Bad Godesberg mit Coding-Workshops, Spiel und Spaß"
,
"location"
:
"Bonn (Jugendzeltplatz)"
,
"location"
:
"Bonn (Jugendzeltplatz)"
,
"date"
:
"2025-08-21"
,
"date"
:
"2025-08-21"
,
"fully_booked"
:
false
"fully_booked"
:
false
,
"featured"
:
true
},
},
"froglabs-2025-glt"
:
{
"froglabs-2025-glt"
:
{
"display_name"
:
"Mini-FrogLabs Grazer Linux-Tage 2025"
,
"display_name"
:
"Mini-FrogLabs Grazer Linux-Tage 2025"
,
"description"
:
"Workshopprogramm für Kinder und Jugendliche bei den Grazer Linux-Tagen 2025"
,
"description"
:
"Workshopprogramm für Kinder und Jugendliche bei den Grazer Linux-Tagen 2025"
,
"location"
:
"Graz"
,
"location"
:
"Graz"
,
"date"
:
"2025-04-26"
"date"
:
"2025-04-26"
,
"featured"
:
true
},
},
"froglabs-2025-tuebix"
:
{
"froglabs-2025-tuebix"
:
{
"display_name"
:
"Mini-FrogLabs TÜBIX 2025"
,
"display_name"
:
"Mini-FrogLabs TÜBIX 2025"
,
"description"
:
"Workshopprogramm für Kinder und Jugendliche beim Tübinger Linux-Tag 2025"
,
"description"
:
"Workshopprogramm für Kinder und Jugendliche beim Tübinger Linux-Tag 2025"
,
"location"
:
"Tübingen"
,
"location"
:
"Tübingen"
,
"date"
:
"2025-07-05"
"date"
:
"2025-07-05"
,
"featured"
:
true
},
},
"campdays-2024-12"
:
{
"campdays-2024-12"
:
{
"display_name"
:
"Campdays Winter 2024"
,
"display_name"
:
"Campdays Winter 2024"
,
...
...
This diff is collapsed.
Click to expand it.
templates/frontpage/events.html
+
16
−
4
View file @
2b97ef2b
{# FIXME generate dynamically #}
<section
class=
"section"
>
{% set title = trans(key="upcoming_events", lang=lang) %}
<div
class=
"container"
>
{% set slug = "hacknsun-2025-bn" %}
<h2
class=
"title is-2"
>
{{ trans(key="upcoming_events", lang=lang) }}
</h2>
{% include "shortcodes/event_section.html" %}
{#
<div
class=
"columns is-multiline is-same-height mt-4"
>
#}
{% set events_data = load_data(path="events.json") -%}
{% set no_title = true %}
{% for slug, event in events_data %}
{% if event.featured | default(value=false) %}
{#
<div
class=
"column is-one-third"
>
#}
{% include "shortcodes/teckids_event.html" %}
{#
</div>
#}
{% endif %}
{% endfor %}
{#
</div>
#}
</div>
</section>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment