diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html
index 80ca22a..2a0e818 100644
--- a/layouts/partials/head/scripts.html
+++ b/layouts/partials/head/scripts.html
@@ -1099,7 +1099,7 @@
// ====================== mobile search =======================
var mobileSearchInputElem = document.querySelector('#search-mobile');
var mobileSearchClassElem = document.querySelector('.mobile-search');
- var mobileSearchBtnElem = document.querySelector('#mobileSearchBtn');
+ var mobileSearchBtnElems = document.querySelectorAll('.navbar-search');
var mobileSearchCloseBtnElem = document.querySelector('#search-mobile-close');
var mobileSearchContainer = document.querySelector('#search-mobile-container');
var mobileSearchResultsElem = document.querySelector('#search-mobile-results');
@@ -1109,19 +1109,21 @@
mobileSearchClassElem.style.display = 'none';
}
- mobileSearchBtnElem ?
- mobileSearchBtnElem.addEventListener('click', function () {
- if (mobileSearchContainer) {
- mobileSearchContainer.style.display = 'block';
- }
+ mobileSearchBtnElems ?
+ mobileSearchBtnElems.forEach(function (elem, idx) {
+ elem.addEventListener('click', function () {
+ if (mobileSearchContainer) {
+ mobileSearchContainer.style.display = 'block';
+ }
- if (mobileSearchInputElem) {
- mobileSearchInputElem.focus();
- }
+ if (mobileSearchInputElem) {
+ mobileSearchInputElem.focus();
+ }
- if (htmlElem) {
- htmlElem.style.overflowY = 'hidden';
- }
+ if (htmlElem) {
+ htmlElem.style.overflowY = 'hidden';
+ }
+ });
}) : null;
mobileSearchCloseBtnElem ?
diff --git a/layouts/partials/navbar/language-icon.html b/layouts/partials/navbar/language-icon.html
new file mode 100644
index 0000000..d39d3c6
--- /dev/null
+++ b/layouts/partials/navbar/language-icon.html
@@ -0,0 +1,28 @@
+
+
+
+
+ {{ $siteLanguages := .Site.Languages }}
+ {{ $pageLang := .Page.Lang }}
+ {{ range .Page.AllTranslations }}
+ {{ $translation := . }}
+ {{ range $siteLanguages }}
+ {{ if eq $translation.Lang .Lang }}
+ {{ $selected := false }}
+ {{ if eq $pageLang .Lang }}
+ {{ if .LanguageName }}
+
{{ .LanguageName }}
+ {{ end }}
+ {{ else }}
+ {{ if .LanguageName }}
+
{{ .LanguageName }}
+ {{ end }}
+ {{ end }}
+ {{ end }}
+ {{ end }}
+ {{ end }}
+
+
+
\ No newline at end of file
diff --git a/layouts/partials/navbar/nav-menu.html b/layouts/partials/navbar/nav-menu.html
index 10db01a..dcf68a6 100644
--- a/layouts/partials/navbar/nav-menu.html
+++ b/layouts/partials/navbar/nav-menu.html
@@ -1,4 +1,10 @@