summaryrefslogtreecommitdiff
path: root/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/new_theme/layouts/partials/widgets/elasticlunr_search.html')
-rw-r--r--themes/new_theme/layouts/partials/widgets/elasticlunr_search.html9
1 files changed, 2 insertions, 7 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..5da7a2a 100644
--- a/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
+++ b/themes/new_theme/layouts/partials/widgets/elasticlunr_search.html
@@ -1,15 +1,13 @@
-{{- 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>
</div>
-{{- if ( eq .URL "/search/" ) }}
+{{- if ( eq .Permalink "/search/" ) }}
<script language="Javascript">
$( window ).load( function( ) {
var paramsString = window.location.search;
@@ -21,6 +19,3 @@
} );
</script>
{{- end }}
-{{- end }}
-
-