summaryrefslogtreecommitdiff
path: root/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-06-05 16:57:53 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-06-05 16:57:53 +0200
commit983b64ca51f5e769f790a5ebc55e3808157b8d94 (patch)
tree4fb52d8e2f449e44a51ed0549cec9debbcd3d157 /themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
parentff7e6bde0be9ac60e694097ce3598f9b552c4807 (diff)
downloadwww-andreasbaumann-cc-983b64ca51f5e769f790a5ebc55e3808157b8d94.tar.gz
www-andreasbaumann-cc-983b64ca51f5e769f790a5ebc55e3808157b8d94.tar.bz2
updated to newest theme supporting newer hugo versions
Diffstat (limited to 'themes/new_theme/layouts/partials/widgets/elasticlunr_search.html')
-rw-r--r--themes/new_theme/layouts/partials/widgets/elasticlunr_search.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
index 9fa5b34..2085966 100644
--- a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
+++ b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
@@ -1,10 +1,8 @@
-{{- if .Site.Params.widgets.search }}
<h4 class="widget__title">Search</h4>
<div class="widget-search widget">
<form class="widget-search__form" role="search" method="get" action="/search/">
<label>
- <span class="screen-reader-text">Search for:</span>
- <input class="widget-search__field" type="search" autocomplete="off" placeholder="SEARCH..." value="" id="query" name="q">
+ <input class="widget-search__field" type="search" autocomplete="off" placeholder="{{ T "search_placeholder" }}" value="" id="query" name="q" aria-label="{{ T "search_placeholder" }}">
</label>
<input class="widget-search__submit" type="submit" value="Search">
</form>
@@ -21,6 +19,3 @@
} );
</script>
{{- end }}
-{{- end }}
-
-