Skip to content

Commit 1596057

Browse files
committed
allow adjustment of titles in activityfeed/ featured and upcoming events block in the CMS
1 parent ce3ce76 commit 1596057

File tree

4 files changed

+40
-21
lines changed

4 files changed

+40
-21
lines changed

content/english/_index.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,24 @@ overview_block:
3333
subtitle: Statistical and legal expertise
3434
url: /knowledge-platform/
3535
icon: fa-light fa-layer-group
36-
color: "#E3F0FE"
36+
color: '#E3F0FE'
3737
- title: Algoprudence
3838
subtitle: Case-based normative advice
3939
url: /algoprudence/
4040
icon: fa-light fa-scale-balanced
41-
color: "#F7CDBF"
41+
color: '#F7CDBF'
4242
- title: Technical tools
4343
subtitle: Open source AI auditing tools
4444
url: /technical-tools/
4545
icon: fa-light fa-toolbox
46-
color: "#FFFDE4"
46+
color: '#FFFDE4'
4747
- title: Project work
48-
subtitle: "Validation, AI Act etc."
48+
subtitle: 'Validation, AI Act etc.'
4949
url: /knowledge-platform/project-work/
5050
icon: fa-light fa-magnifying-glass-plus
51-
color: "#E3F0FE"
51+
color: '#E3F0FE'
5252
Activity_Feed:
53+
featured_title: Featured
5354
featured_activities:
5455
- title: >-
5556
Public standard 'Meaningful human intervention for risk profiling
@@ -66,6 +67,7 @@ Activity_Feed:
6667
type: public standard
6768
featured_button_text: More items
6869
featured_button_link: /knowledge-platform/knowledge-base/
70+
items_title: Upcoming events
6971
activities:
7072
- title: Guest lecture 'Fairness and Algorithms' ETH Zürich
7173
link: /events/activities/#events
@@ -152,46 +154,46 @@ Distinctive_in:
152154
icon: fab fa-slideshare
153155
content: >
154156
Audits and corresponding advice (*algoprudence*) are made <a
155-
href="https://algorithmaudit.eu/algoprudence/"
156-
style="text-decoration: underline;">publicly available</a>,
157-
increasing collective knowledge how to deploy and use algorithms in an
158-
responsible way
157+
href="https://algorithmaudit.eu/algoprudence/" style="text-decoration:
158+
underline;">publicly available</a>, increasing collective knowledge how
159+
to deploy and use algorithms in an responsible way
159160
button_text: Project work
160161
button_link: /knowledge-platform/project-work/
161162
Supported_by:
162163
title: Collaborating with
163164
funders:
164165
- image: /images/supported_by/sidn.png
165-
link: "https://www.sidnfonds.nl/projecten/open-source-ai-auditing"
166+
link: 'https://www.sidnfonds.nl/projecten/open-source-ai-auditing'
166167
alt_text: Foundation for Internet and Democracy Netherlands
167168
- image: /images/supported_by/EUAISFund.png
168-
link: "https://europeanaifund.org/announcing-our-2022-open-call-grantees/"
169+
link: 'https://europeanaifund.org/announcing-our-2022-open-call-grantees/'
169170
alt_text: European AI & Society Fund
170171
- image: /images/supported_by/BZK.jpg
171172
link: >-
172173
https://www.rijksoverheid.nl/ministeries/ministerie-van-binnenlandse-zaken-en-koninkrijksrelaties
173174
alt_text: Dutch Ministry of the Interior
174175
- image: /images/supported_by/HAI.png
175-
link: "https://hai.stanford.edu/ai-audit-challenge-2023-finalists"
176+
link: 'https://hai.stanford.edu/ai-audit-challenge-2023-finalists'
176177
alt_text: Stanford University Human-Centered Artificial Intelligence Lab
177178
- image: /images/supported_by/DUO.png
178-
link: "https://duo.nl"
179+
link: 'https://duo.nl'
179180
alt_text: Dutch Executive Agency for Education
180181
- image: /images/partners/NEN.svg
181-
link: "https://www.nen.nl"
182+
link: 'https://www.nen.nl'
182183
alt_text: Dutch standardisation institute
183184
- image: /images/partners/CEN.jpg
184-
link: "https://www.cencenelec.eu"
185-
alt_text: "Europees standardisation committee "
185+
link: 'https://www.cencenelec.eu'
186+
alt_text: 'Europees standardisation committee '
186187
- image: /images/events/Amsterdam.png
187-
link: "https://www.amsterdam.nl"
188+
link: 'https://www.amsterdam.nl'
188189
alt_text: Municipality of Amsterdam
189190
- image: /images/supported_by/CoE.png
190-
link: "https://www.coe.int/en/web/portal/home"
191+
link: 'https://www.coe.int/en/web/portal/home'
191192
alt_text: Council of Europe
192193
button_text: And more
193194
button_link: /funded-by
194195
Title_video:
195196
title: The Movie
196197
video_mp4: /videos/AA_video_(1080p).mp4
197198
---
199+

layouts/partials/landingpage/activityfeed.html

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

@@ -68,6 +68,8 @@ <h3 class="mb-2" style="color: #005aa7;">{{.title}}</h3>
6868
</div>
6969
</section>
7070
<!-- /Featured Activities -->
71+
72+
<!-- Items -->
7173
<section class="activitifeed-section pt-5 mt-5" id="events">
7274
<div class="container" style="background-color:#deecf7;">
7375
<div class="row align-items-center">
@@ -76,7 +78,7 @@ <h3 class="mb-2" style="color: #005aa7;">{{.title}}</h3>
7678
{{ if .activities }}
7779
<div class="row mt-5">
7880
<!-- title recent activities section -->
79-
<h3 class="section-title" style="color: #005aa7;">{{ i18n "recent-activity" }}</h3>
81+
<h3 class="section-title" style="color: #005aa7;">{{ .items_title }}</h3>
8082
<!-- /title recent activities section -->
8183
</div>
8284
{{ range .activities }}
@@ -132,5 +134,6 @@ <h4 class="my-4 ml-3 mr-5" style="color: #005aa7;">
132134
</div>
133135
</div>
134136
</section>
137+
<!-- /Items -->
135138
{{ end }}
136139
<!-- /Activity Feed -->

tina/collections/pages/home.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ export default {
147147
name: "Activity_Feed",
148148
label: "Featured and recent items",
149149
fields: [
150+
{
151+
label: "Featured Title",
152+
type: "string",
153+
name: "featured_title",
154+
isTitle: true,
155+
required: true,
156+
},
150157
{
151158
label: "Featured Items",
152159
type: "object",
@@ -200,6 +207,13 @@ export default {
200207
type: "string",
201208
name: "featured_button_link",
202209
},
210+
{
211+
label: "Items Title",
212+
type: "string",
213+
name: "items_title",
214+
isTitle: true,
215+
required: true,
216+
},
203217
{
204218
label: "Items",
205219
type: "object",

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)