Skip to content

Commit be7c0ca

Browse files
committed
add search to menu
1 parent 52093bb commit be7c0ca

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

i18n/en.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ other = "Medium risk"
9191
[score-card--low-risk]
9292
other = "Low risk"
9393

94+
[search]
95+
other = "Search"
96+
9497
[search-type-to-start]
9598
other = "Type to start searching"
9699

i18n/nl.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ other = "Medium risico"
9191
[score-card--low-risk]
9292
other = "Laag risico"
9393

94+
[search]
95+
other = "Zoeken"
96+
9497
[search-type-to-start]
9598
other = "Typ om te beginnen met zoeken"
9699

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@
8686
</style>
8787
<!-- Search -->
8888
<div class="search-overlay d-none"></div>
89-
<section class="section color-blue">
89+
<section class="section color-blue" id="search">
9090
<div class="container algolia-search rounded-lg">
9191
<div class="row">
9292
<div class="col">
93-
<h2 class="pt-5 color-blue">Search</h2>
93+
<h2 class="pt-5 color-blue">{{i18n "search" }}</h2>
9494
</div>
9595
</div>
9696
<div class="row">

layouts/partials/header.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@
5959
{{ end }}
6060
{{ end }}
6161

62+
<!-- Search -->
63+
<li class="nav-item">
64+
<a class="nav-link" href='{{ if eq .Site.Language.Lang "en" }}{{else}}/nl/#search{{end}}' title="Search">{{i18n "search" }} <i class="fas fa-search"></i></a>
65+
</li>
66+
<!-- /Search -->
67+
68+
6269
<!-- Language toggle -->
63-
6470
{{ if .IsTranslated }}
6571
{{ range .Translations }}
6672
<li class="nav-item d-inline-block" style="min-width: 137px;">

0 commit comments

Comments
 (0)