Skip to content

Commit 2c0ba4c

Browse files
committed
adding a previous conferences page + automating the archive list
1 parent 32a4288 commit 2c0ba4c

File tree

10 files changed

+112
-20
lines changed

10 files changed

+112
-20
lines changed

config/_default/menu.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,18 @@ main:
3737
parent: "About"
3838
url: "https://sumo.dlr.de/daily"
3939
weight: 4
40-
- name: "Proceedings and Editorial Team"
41-
parent: "Conference"
42-
url: "proceedings"
43-
weight: 1
4440
- name: "SUMO User Conference 2025"
4541
parent: "Conference"
4642
url: "conference"
43+
weight: 1
44+
- name: "Proceedings and Editorial Team"
45+
parent: "Conference"
46+
url: "proceedings"
4747
weight: 2
48+
- name: "Previous conferences"
49+
parent: "Conference"
50+
url: "archive"
51+
weight: 3
4852
- name: "Projects"
4953
parent: "References"
5054
url: "https://sumo.dlr.de/docs/Other/Projects.html"

content/2015.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "SUMO User Conference 2015"
33
subtitle: "Intermodal Simulation for Intermodal Transport"
4-
conferenceDate: "May 7-8"
4+
conferenceDate: "May 07-08"
55
conferenceLocation: "Berlin-Adlershof, Germany"
66
description : "Get in touch with our international user community"
77
layout: "single"

content/2017.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "SUMO User Conference 2017"
33
subtitle: "Towards Simulation for Autonomous Mobility"
4-
conferenceDate: "May 8-10"
4+
conferenceDate: "May 08-10"
55
conferenceLocation: "Berlin-Adlershof, Germany"
66
description : "Get in touch with our international user community"
77
layout: "single"

content/archive.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "Previous SUMO User Conferences"
3+
description : "Read more about the previous editions of the conference"
4+
layout: "single"
5+
draft: false
6+
---
7+
8+
<div class="container"><div class="row"><div class="col-md-12 contact-div">
9+
10+
The SUMO User Conference, held every year in Berlin since 2013, is a must-attend event for anyone involved with SUMO. It gathers international participants from the industry, research and public institutions - to present (among others) projects, studies and advancements all around traffic, simulation and SUMO.
11+
12+
The conference is a great place to learn about new features, network with fellow enthusiasts, ask the developers, have fruitful discussions, exchange ideas and even start collaborations!
13+
14+
15+
{{< include "conference_cards.html" >}}
16+
17+
18+
</div></div></div>

data/previous_conferences.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
conferences:
2+
- year: 2025
3+
location: "Berlin"
4+
date: "May 12-14"
5+
banner: "banner_2025.png"
6+
- year: 2024
7+
location: "Berlin"
8+
date: "May 13-15"
9+
banner: "banner_2024.png"
10+
- year: 2023
11+
location: "Berlin"
12+
date: "May 02-04"
13+
banner: "banner_2023.png"
14+
- year: 2022
15+
location: "Online"
16+
date: "May 09-11"
17+
banner: "banner_2022.png"
18+
- year: 2021
19+
location: "Online"
20+
date: "September 13-15"
21+
banner: "banner_2021.png"
22+
- year: 2020
23+
location: "Online"
24+
date: "October 26-28"
25+
banner: "banner_2020.png"
26+
- year: 2019
27+
location: "Berlin"
28+
date: "May 13-15"
29+
- year: 2018
30+
location: "Berlin"
31+
date: "May 14-16"
32+
- year: 2017
33+
location: "Berlin"
34+
date: "May 08-10"
35+
- year: 2016
36+
location: "Berlin"
37+
date: "May 23-25"
38+
- year: 2015
39+
location: "Berlin"
40+
date: "May 07-08"
41+
- year: 2014
42+
location: "Berlin"
43+
date: "May 15-16"
44+
- year: 2013
45+
location: "Berlin"
46+
date: "May 15-17"

themes/sumo-theme/layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h4 style="text-align: center; color: #6d846e;">{{ index .Params "subtitle" }}</
2020
<div class="col-md-10 contact-div">
2121
{{ if isset .Params "image" }}<img src="../images/{{ $.Params.image }}" style="border-radius: .6rem .6rem 0 0; margin-top:-30px; margin-left: -30px; width: calc(100% + 60px); margin-bottom: 40px;" class="img-responsive" alt="Conference image"/>{{ end }}
2222
{{ .Content }}</div>
23-
<div class="col-md-2"><div style="border-left: 1px solid #d4d4d4; padding-left: 10px;">{{- partial "conference_archive.html" . -}}<br><br>{{- partial "toc.html" . -}}{{ if ne (isset .Params "about-conference") true }}{{- partial "info_proceedings_editors.html" . -}}{{ end }}</div></div>
23+
<div class="col-md-2"><div style="border-left: 1px solid #d4d4d4; padding-left: 10px;">{{- partial "toc.html" . -}}{{- partial "conference_archive.html" . -}}{{ if ne (isset .Params "about-conference") true }}{{- partial "info_proceedings_editors.html" . -}}{{ end }}</div></div>
2424
</div></div>
2525
{{ else }}
2626
{{ .Content }}

themes/sumo-theme/layouts/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ <h2 class="section-heading">Conference & Community</h2>
377377
<a class="btn btn-sm btn-light" href="{{ `conference` | absURL }}" role="button">Conference website</a>
378378
<a class="btn btn-sm btn-light" href="{{ `proceedings` | absURL }}" role="button">Proceedings</a>
379379
<a class="btn btn-sm btn-light" href="{{ `proceedings#editorial-team` | relURL }}" role="button">Editorial Team</a>
380+
<a class="btn btn-sm btn-light" href="{{ `archive` | relURL }}" role="button">Archive</a>
380381
</div>
381382
</div>
382383
</div>

themes/sumo-theme/layouts/partials/conference_archive.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,12 @@
55
<button type="button" class="btn btn-light btn-archive btn-sm dropdown-toggle" data-toggle="dropdown" title="Explore previous conferences">Select year </button>
66
<div class="dropdown-menu text-center">
77
<a class="dropdown-item" href="{{ `conference` | absURL }}">Current conference <i class="fas fa-angle-double-right"></i></a>
8-
<a class="dropdown-item" href="{{ `2025` | absURL }}">2025</a>
9-
<a class="dropdown-item" href="{{ `2024` | absURL }}">2024</a>
10-
<a class="dropdown-item" href="{{ `2023` | absURL }}">2023</a>
11-
<a class="dropdown-item" href="{{ `2022` | absURL }}">2022</a>
12-
<a class="dropdown-item" href="{{ `2021` | absURL }}">2021</a>
13-
<a class="dropdown-item" href="{{ `2020` | absURL }}">2020</a>
14-
<a class="dropdown-item" href="{{ `2019` | absURL }}">2019</a>
15-
<a class="dropdown-item" href="{{ `2018` | absURL }}">2018</a>
16-
<a class="dropdown-item" href="{{ `2017` | absURL }}">2017</a>
17-
<a class="dropdown-item" href="{{ `2016` | absURL }}">2016</a>
18-
<a class="dropdown-item" href="{{ `2015` | absURL }}">2015</a>
19-
<a class="dropdown-item" href="{{ `2014` | absURL }}">2014</a>
20-
<a class="dropdown-item" href="{{ `2013` | absURL }}">2013</a>
8+
{{- $editions := site.Data.previous_conferences.conferences }}
9+
{{- range $editions }}
10+
<a class="dropdown-item" href="{{ .year | absURL }}">{{ .year }}</a>
11+
{{- end }}
2112
<a class="dropdown-item" href="https://sumo.dlr.de/docs/SumoWorkshop2010.html">Workshop 2010</a>
2213
</div>
2314
</div>
2415
</div>
16+
<br><br>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div class="container mt-5">
2+
<div class="row" style="display:flex; flex-wrap: wrap; align-items: stretch;">
3+
{{- $editions := site.Data.previous_conferences.conferences }}
4+
{{- range $editions }}
5+
<div class="col-md-4 mb-4 d-flex flex-column">
6+
<div class="contact-div flex-fill">
7+
{{- if .banner }}
8+
<img src="../images/{{ .banner }}" class="card-img-top" alt="Card image">
9+
{{- end }}
10+
<div class="card-body">
11+
<h5 class="card-title">{{ .year }}</h5>
12+
<p class="card-text">{{ .date }} • {{ .location }}</p>
13+
<a href="../{{ .year }}" class="btn btn-sm btn-outline-info">Learn more</a>
14+
</div>
15+
</div>
16+
</div>
17+
{{- end }}
18+
<div class="col-md-4 mb-4 d-flex flex-column">
19+
<div class="contact-div flex-fill">
20+
<div class="card-body">
21+
<h5 class="card-title">Workshop 2010</h5>
22+
<p class="card-text">November 11-12 • Berlin</p>
23+
<a href="https://sumo.dlr.de/docs/SumoWorkshop2010.html" class="btn btn-sm btn-outline-info">Learn more</a>
24+
</div>
25+
</div>
26+
</div>
27+
</div>
28+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ $file := .Get 0 }}
2+
{{ $path := printf "partials/%s" $file }}
3+
{{ partial $path . }}

0 commit comments

Comments
 (0)