File tree Expand file tree Collapse file tree 11 files changed +42
-14
lines changed
2024-06-05t13-30-00-ufuk-can-bicici
2024-07-05t11-00-00-computer-engineering
2024-07-05t19-00-00-software-engineering
layouts/partials/bouncmpe Expand file tree Collapse file tree 11 files changed +42
-14
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ type: phd-thesis-defense
3
3
title : Conditional Computation Techniques in Deep Neural Networks with
4
4
Conditional Information Gain
5
5
name : Ufuk Can Biçici
6
- time : 2024-06-05T13:30:00
6
+ datetime : 2024-06-05T13:30:00
7
7
duration : 2h
8
8
location : Ali Vahit Şahiner (AVŞ)
9
9
---
Original file line number Diff line number Diff line change 2
2
type : phd-thesis-defense
3
3
title : Koşullu Bilgi Kazanım ile Derin Sinir Ağlarında Koşullu Hesaplama Teknikleri
4
4
name : Ufuk Can Biçici
5
- time : 2024-06-05T13:30:00
5
+ datetime : 2024-06-05T13:30:00
6
6
duration : 2h
7
7
location : Ali Vahit Şahiner (AVŞ)
8
8
---
Original file line number Diff line number Diff line change 2
2
type : special-event
3
3
title : Graduation Ceremony 2024
4
4
name : Computer Engineering
5
- time : 2024-07-05T11:00:00
5
+ datetime : 2024-07-05T11:00:00
6
6
duration : 2h
7
7
location : Albert Long Hall
8
8
---
Original file line number Diff line number Diff line change 2
2
type : special-event
3
3
title : Mezuniyet Töreni 2024
4
4
name : Bilgisayar Mühendisliği
5
- time : 2024-07-05T11:00:00
5
+ datetime : 2024-07-05T11:00:00
6
6
duration : 2h
7
7
location : Albert Long Hall
8
8
---
Original file line number Diff line number Diff line change 2
2
type : special-event
3
3
title : Graduation Ceremony 2024
4
4
name : Software Engineering
5
- time : 2024-07-05T19:00:00
5
+ datetime : 2024-07-05T19:00:00
6
6
duration : 2h
7
7
location : Albert Long Hall
8
8
---
Original file line number Diff line number Diff line change 2
2
type : special-event
3
3
title : Mezuniyet Töreni 2024
4
4
name : Yazılım Mühendisliği
5
- time : 2024-07-05T19:00:00
5
+ datetime : 2024-07-05T19:00:00
6
6
duration : 2h
7
7
location : Albert Long Hall
8
8
---
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ events:
31
31
upcoming-events :
32
32
other : upcoming events
33
33
34
+ past-events :
35
+ other : past events
36
+
34
37
latest-stories :
35
38
other : latest stories
36
39
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ latest-news:
28
28
upcoming-events :
29
29
other : gelecek etkinlikler
30
30
31
+ past-events :
32
+ other : geçmiş events
33
+
31
34
latest-stories :
32
35
other : en yeni haberler
33
36
Original file line number Diff line number Diff line change 1
1
{{ $event_title := .Params.title }}
2
- {{ $event_description := .Params.description }}
3
- {{ $event_start_time := .Params.time | time.AsTime }}
2
+ {{ $event_start_time := .Params.datetime | time.AsTime }}
4
3
{{ $event_duration := .Params.duration | time.ParseDuration }}
5
4
{{ $event_end_time := $event_start_time.Add $event_duration }}
6
5
{{ $event_location := .Params.location }}
26
25
</ div >
27
26
{{/*
28
27
Strecthed link applies to the card body due to a dummy transform property has set.
29
- See https://getbootstrap.com/docs/5.2 /helpers/stretched-link/#identifying-the-containing-block
28
+ See https://getbootstrap.com/docs/5.3 /helpers/stretched-link/#identifying-the-containing-block
30
29
*/}}
31
30
< div class ="card-body " style ="transform: rotate(0); ">
32
31
{{ if .Content }}< a href ="{{ .RelPermalink }} " class ="stretched-link "> </ a > {{ end }}
Original file line number Diff line number Diff line change 1
1
{{ $events := where site.RegularPages "Section" "events" }}
2
+ {{ $sorted := sort $events "Params.datetime" }}
3
+
4
+ {{ $future_events := slice }}
5
+ {{ range $sorted }}
6
+ {{ if ge (time.AsTime .Params.datetime) now }}
7
+ {{ $future_events = $future_events | append . }}
8
+ {{ end }}
9
+ {{ end }}
10
+
11
+ {{ $past_events := slice }}
12
+ {{ range $sorted }}
13
+ {{ if lt (time.AsTime .Params.datetime) now }}
14
+ {{ $past_events = $past_events | append . }}
15
+ {{ end }}
16
+ {{ end }}
2
17
3
- {{ if $events }}
4
18
< section id ="eventbar ">
5
19
< h1 class ="display-6 my-4 "> {{ i18n "upcoming-events" | title }}</ h1 >
20
+ {{ if $future_events }}
6
21
< div class ="row row-cols-1 g-2 m-1 ">
7
- {{ range (first 6 $events ) }}
22
+ {{ range (first 6 $future_events ) }}
8
23
{{ partial "bouncmpe/eventbar-card.html" . }}
9
24
{{end}}
10
25
</ div >
26
+ {{ end }}
11
27
< div class ="row p-3 ">
12
28
< div class ="card rounded-4 ">
13
29
< ul class ="list-group list-group-flush ">
@@ -19,5 +35,12 @@ <h1 class="display-6 my-4">{{ i18n "upcoming-events" | title }}</h1>
19
35
</ ul >
20
36
</ div >
21
37
</ div >
38
+ {{ if le (len $future_events) 2 }}
39
+ < h1 class ="display-6 my-4 "> {{ i18n "past-events" | title }}</ h1 >
40
+ < div class ="row row-cols-1 g-2 m-1 ">
41
+ {{ range (first 3 $past_events.Reverse) }}
42
+ {{ partial "bouncmpe/eventbar-card.html" . }}
43
+ {{end}}
44
+ </ div >
45
+ {{ end }}
22
46
</ section >
23
- {{ end }}
You can’t perform that action at this time.
0 commit comments