Skip to content

Commit f0cc908

Browse files
authored
Merge pull request #63 from NGO-Algorithm-Audit/feature/footer
Feature/footer
2 parents 5ab1370 + 5057f7f commit f0cc908

File tree

7 files changed

+56
-62
lines changed

7 files changed

+56
-62
lines changed

assets/scss/templates/_navigation.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
}
99

1010
.navbar-light .navbar-nav .nav-link {
11-
color: #005aa7;
11+
color: #005aa7 !important;
1212

1313
&:hover {
14-
color: #8FAFD0;
14+
color: #8FAFD0 !important;
1515
}
1616
}
1717

config/_default/menus.NL.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ weight = 1
88
name = "Algoprudentie"
99
weight = 2
1010
hasChildren = true
11+
url = "/nl/algoprudence"
1112
[[main]]
1213
parent = "Algoprudentie"
1314
name = "Dien een case in"
@@ -34,6 +35,7 @@ hasChildren = true
3435
name = "Technische tools"
3536
weight = 3
3637
hasChildren = true
38+
url = "/nl/technical-tools/BDT"
3739
[[main.params]]
3840
icon = "fa-table"
3941
[[main]]
@@ -64,6 +66,7 @@ hasChildren = true
6466
name = "Kennisplatform"
6567
weight = 4
6668
hasChildren = true
69+
url = "/nl/knowledge-platform/knowledge-base"
6770
[[main]]
6871
parent = "Kennisplatform"
6972
name = "AI Act standaarden"
@@ -81,7 +84,7 @@ hasChildren = true
8184
[[main]]
8285
parent = "Kennisplatform"
8386
name = "Kennisbank"
84-
url = "nl/knowledge-platform/knowledge-base"
87+
url = "/nl/knowledge-platform/knowledge-base"
8588
weight = 3
8689
[[main.params]]
8790
icon = "fa-brain"
@@ -117,6 +120,7 @@ hasChildren = true
117120
name = "Over ons"
118121
weight = 6
119122
hasChildren = true
123+
url = "/nl/about/contact"
120124
[[main]]
121125
parent = "Over ons"
122126
name = "Kom in contact"

config/_default/menus.en.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ weight = 1
77
[[main]]
88
name = "Algoprudence"
99
weight = 2
10+
url = "/algoprudence"
1011
hasChildren = true
1112
[[main]]
1213
parent = "Algoprudence"
@@ -34,6 +35,7 @@ hasChildren = true
3435
name = "Technical tools"
3536
weight = 3
3637
hasChildren = true
38+
url = "/technical-tools/BDT"
3739
[[main]]
3840
parent = "Technical tools"
3941
name = "Github code"
@@ -62,6 +64,7 @@ hasChildren = true
6264
name = "Knowledge platform"
6365
weight = 4
6466
hasChildren = true
67+
url = "/knowledge-platform/knowledge-base"
6568
[[main]]
6669
parent = "Knowledge platform"
6770
name = "AI Act standards"
@@ -115,6 +118,7 @@ hasChildren = true
115118
name = "About"
116119
weight = 6
117120
hasChildren = true
121+
url = "/about/contact"
118122
[[main]]
119123
parent = "About"
120124
name = "Get in touch"

i18n/en.toml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,23 @@ other = "Newsletter"
7070
[newsletter_info]
7171
other = "Stay up to date about our work by signing up for our newsletter"
7272

73-
[privacy_cookie_policy]
74-
other = "Privacy and cookies policy"
75-
76-
[stiching_info]
77-
other = "Stichting Algorithm Audit is registered as a non-profit organisation at the Dutch Chambre of Commerce under license number 83979212"
78-
7973
[required]
8074
other = "required"
8175

82-
[license]
76+
[pdf-preview-unsupported]
77+
other = "The PDF preview is not supported by this browser, click here to open the PDF file."
78+
79+
[footer.privacy_cookie_policy]
80+
other = "Privacy and cookies policy"
81+
82+
[footer.license]
8383
other = "This website is built under CC-BY 4.0 license. This means you can share and adapt content freely, as long as you credit Algorithm Audit and named co-creators"
8484

85-
[pdf-preview-unsupported]
86-
other = "The PDF preview is not supported by this browser, click here to open the PDF file."
85+
[footer.slogan]
86+
other = "Building public knowledge for ethical algorithms"
87+
88+
[footer.kvk]
89+
other = "Stichting Algorithm Audit is registered as a non-profit organisation at the Dutch Chambre of Commerce under license number 83979212"
90+
91+
[footer.follow]
92+
other = "Follow us:"

i18n/nl.toml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,20 @@ other = "Nieuwsbrief"
5353
[newsletter_info]
5454
other = "Blijf op de hoogte van ons werk door je in te schrijven voor onze nieuwsbrief"
5555

56-
[privacy_cookie_policy]
57-
other = "Privacy- en cookieverklaring"
56+
[pdf-preview-unsupported]
57+
other = "De browser ondersteunt de PDF preview niet, klik hier om de pdf te openen."
5858

59-
[stiching_info]
60-
other = "Stichting Algorithm Audit is bij de Kamer van Koophandel geregistreerd onder nummer 83979212"
59+
[footer.privacy_cookie_policy]
60+
other = "Privacy- en cookieverklaring"
6161

62-
[license]
62+
[footer.license]
6363
other = "Deze website is gebouwd onder de CC-BY 4.0 licentie. Dit betekent dat je de content kunt hergebruiken en kunt aanpassen mits je Algorithm Audit en co-ontwikkelaars vermeldt "
6464

65-
[pdf-preview-unsupported]
66-
other = "De browser ondersteunt de PDF preview niet, klik hier om de pdf te openen."
65+
[footer.slogan]
66+
other = "Publieke kennisopbouw voor ethische algoritmes"
67+
68+
[footer.kvk]
69+
other = "Stichting Algorithm Audit is bij de Kamer van Koophandel geregistreerd onder nummer 83979212"
70+
71+
[footer.follow]
72+
other = "Volg ons:"

layouts/partials/footer.html

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ <h3 style="color:#005aa7;">{{$newsletter}}</h3>
147147
<div class="row motto">
148148
<!-- Motto -->
149149
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 content">
150-
<h2 class="section-title motto" id="motto" style="color: #005aa7; text-align:center"></h2>
150+
<h2 class="section-title motto" id="motto" style="color: #005aa7; text-align:center">
151+
{{ i18n "footer.motto" }}
152+
</h2>
151153
</div>
152154
<!-- /Motto -->
153155
</div>
@@ -179,7 +181,9 @@ <h3 style="font-size:14px; color:#005aa7;">Sitemap</h3>
179181

180182
<!-- Follow us -->
181183
<div class="col-lg-2 col-md-2 col-sm-6 col-xs-6 order-lg-3 order-md-3 order-sm-3 order-xs-3 custom_div_parent">
182-
<p id="follow" style="font-size:12px; color: #005aa7;"></p>
184+
<p id="follow" style="font-size:12px; color: #005aa7;">
185+
{{ i18n "footer.follow"}}
186+
</p>
183187
{{ with site.Params.social }}
184188
<div class="social-icons">
185189
{{ range . }}
@@ -195,31 +199,36 @@ <h3 style="font-size:14px; color:#005aa7;">Sitemap</h3>
195199
</section>
196200

197201
<!-- lowest footer -->
198-
{{ $privacy_cookie_policy := i18n "privacy_cookie_policy"}}
199-
{{ $stiching_info := i18n "stiching_info"}}
200-
{{ $license := i18n "license"}}
201202
<section class="section" style="padding:0px 0px 0px 0px; margin-top:40px; margin-bottom:10px;">
202203
<div class="container">
203204

204205
<div class="row mobile-footer">
205206

206207
<!-- Privacy policy -->
207208
<div class="col-lg-2 col-md-12 col-sm-12 col-xs-12 mobile-footer-distance" style="padding:0px; ">
208-
<p style="font-size:12px; margin:0px;"><a href="{{ `privacy_policy` | relURL }}">{{$privacy_cookie_policy}}</a></p>
209+
<p style="font-size:12px; margin:0px;">
210+
<a href="{{ `privacy_policy` | relURL }}">
211+
{{ i18n "footer.privacy_cookie_policy" }}
212+
</a>
213+
</p>
209214
</div>
210215
<!--/Privacy policy -->
211216

212217
<!-- KVK -->
213218
<div class="col-lg-5 col-md-12 col-sm-12 col-xs-12 mobile-footer-distance pr-2" style="padding:0px 0px;">
214219
<div style="padding: 0px 0px;">
215-
<a id="KvK" style="font-size:12px; padding: 0px 0px; cursor: default;">{{$stiching_info}}</a>
220+
<a id="KvK" style="font-size:12px; padding: 0px 0px; cursor: default;">
221+
{{ i18n "footer.kvk" }}
222+
</a>
216223
</div>
217224
</div>
218225
<!--/KVK -->
219226

220227
<!-- License -->
221228
<div class="col-lg-5 col-md-12 col-sm-12 col-xs-12 mobile-footer-distance" style="padding:0px 0px;">
222-
<p style="font-size:12px;">{{$license}}</p>
229+
<p style="font-size:12px;">
230+
{{i18n "footer.license"}}
231+
</p>
223232
</div>
224233
<!--/License -->
225234

static/js/main.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -192,41 +192,6 @@ function getSelectedGroups() {
192192
return selectedGroups;
193193
}
194194

195-
// footer info
196-
$(document).ready(function()
197-
{
198-
// info
199-
var slogan = "Building public knowledge for ethical algorithms";
200-
var slogan_NL = "Publieke kennisopbouw voor ethische algoritmes";
201-
202-
var KvK = "Stichting Algorithm Audit is registered as a non-profit organisation at the Dutch Chambre of Commerce under license number 83979212"
203-
var KvK_NL = "Stichting Algorithm Audit is bij de Kamer van Koophandel geregistreerd onder nummer 83979212"
204-
205-
var follow = "Follow us:"
206-
var follow_NL = "Volg ons:"
207-
208-
var location = window.location.href
209-
if(location.includes("nl")){
210-
// info
211-
var slogan = slogan_NL
212-
var KvK = KvK_NL
213-
var follow = follow_NL
214-
}
215-
216-
// info
217-
$('#motto').text(slogan);
218-
$('#KvK').text(KvK);
219-
$('#follow').text(follow);
220-
221-
222-
$('.clickable-wrapper').each(function() {
223-
let clickable_item = $(this);
224-
clickable_item.click(function() {
225-
window.location = clickable_item.attr('data-href');
226-
})
227-
});
228-
});
229-
230195
// Send subscibtion for newsletter
231196
(function($)
232197
{

0 commit comments

Comments
 (0)