Skip to content

Commit c9b1625

Browse files
committed
two featured items next to each other on home
1 parent 2437282 commit c9b1625

File tree

2 files changed

+60
-44
lines changed

2 files changed

+60
-44
lines changed

content/english/_index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ Activity_Feed:
6565
image: /images/knowledge_base/Public_standard_meaningful_human_intervention.png
6666
date: 15-05-2025
6767
type: public standard
68+
- title: >-
69+
Public standard 'Meaningful human intervention for risk profiling
70+
algorithms'
71+
intro: >
72+
Step-by-step guide to prevent prohibited automated decision-making
73+
solely based on profilings, as stated in Article 22 GDPR. Based on
74+
case-based experiences with risk profiling algorithms and aligned with
75+
recent literature.
76+
link: >-
77+
/knowledge-platform/knowledge-base/public_standard_meaningful_human_intervention/
78+
image: /images/knowledge_base/Public_standard_meaningful_human_intervention.png
79+
date: 15-05-2025
80+
type: public standard
6881
featured_button_text: More items
6982
featured_button_link: /knowledge-platform/knowledge-base/
7083
items_title: Upcoming events

layouts/partials/landingpage/activityfeed.html

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,54 +8,57 @@
88
{{ if .featured_activities }}
99
<div class="row mt-5">
1010
<!-- title featured section -->
11-
<h3 class="section-title" style="color: #005aa7;">{{ .featured_title }}</h3>
11+
<h3 class="color-blue section-title">{{ .featured_title }}</h3>
1212
<!-- /title featured section -->
1313
</div>
1414

15-
{{ range .featured_activities }}
16-
<a class="" href="{{.link | relURL }}">
17-
<div class="row justify-content-between clickable-wrapper p-5" style="background-color: #ffffff;">
18-
19-
<!-- image -->
20-
<div class="col-lg-3 col-12 pr-4">
21-
<img class="featured-img img-fluid d-block mx-auto mb-5 mb-lg-0" src="{{.image}}" />
22-
</div>
23-
<!-- /image -->
24-
25-
<div class="col-lg-9 col-12">
26-
<div class="row align-items-center">
27-
28-
<!-- title featured article -->
29-
<h3 class="mb-2" style="color: #005aa7;">{{.title}}</h3>
30-
<!-- /title featured article -->
31-
32-
<!-- intro text -->
33-
<p style="color: #777;">
34-
{{.intro | markdownify}}
35-
<span style="color: #005aa7;">{{ i18n "read_more" }}</span>
36-
</p>
37-
<!-- intro text -->
38-
</div>
39-
40-
<!-- metadata -->
41-
<div class="row" style="position:relative;">
42-
{{ if .date }}
43-
<span class="highlight-red">
44-
{{.date }}
45-
</span>
46-
{{ end }}
47-
{{ if .type }}
48-
<span class="highlight-red">
49-
{{ .type }}
50-
</span>
51-
{{ end }}
15+
<div class="row justify-content-between">
16+
{{ range $index, $item := .featured_activities }}
17+
<div class="col-lg col-12">
18+
<a href="{{$item.link | relURL }}">
19+
<div class="row p-5 bg-white {{if eq $index 0}}mr-lg-2 mb-3 mb-lg-0{{else}}ml-lg-2 mt-3 mt-lg-0{{end}}">
20+
<!-- image -->
21+
<div class="col-lg-3 col-12 p-0 pr-4">
22+
<img class="featured-img img-fluid d-block mx-auto mb-5 mb-lg-0" src="{{$item.image}}" />
23+
</div>
24+
<!-- /image -->
25+
26+
<div class="col-lg-9 col-12">
27+
<div class="row align-items-center">
28+
29+
<!-- title featured article -->
30+
<h3 class="mb-2" style="color: #005aa7;">{{$item.title}}</h3>
31+
<!-- /title featured article -->
32+
33+
<!-- intro text -->
34+
<p style="color: #777;">
35+
{{$item.intro | markdownify}}
36+
<span style="color: #005aa7;">{{ i18n "read_more" }}</span>
37+
</p>
38+
<!-- intro text -->
39+
</div>
40+
41+
<!-- metadata -->
42+
<div class="row" style="position:relative;">
43+
{{ if $item.date }}
44+
<span class="highlight-red">
45+
{{$item.date }}
46+
</span>
47+
{{ end }}
48+
{{ if $item.type }}
49+
<span class="highlight-red">
50+
{{ $item.type }}
51+
</span>
52+
{{ end }}
53+
</div>
54+
<!-- /metadata -->
55+
56+
</div>
5257
</div>
53-
<!-- /metadata -->
54-
55-
</div>
58+
</a>
5659
</div>
57-
</a>
58-
{{end}}
60+
{{end}}
61+
</div>
5962

6063
<!-- More -->
6164
<div class="row mt-4 pb-3 justify-content-center d-flex">
@@ -70,7 +73,7 @@ <h3 class="mb-2" style="color: #005aa7;">{{.title}}</h3>
7073
<!-- /Featured Activities -->
7174

7275
<!-- Items -->
73-
<section class="activitifeed-section pt-5 mt-5" id="events">
76+
<section class="activitifeed-section pt-5 mt-2" id="events">
7477
<div class="container" style="background-color:#deecf7;">
7578
<div class="row align-items-center">
7679
<div class="mx-4 col order-1">

0 commit comments

Comments
 (0)