summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-04 19:39:01 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-04 19:39:01 +0200
commitc87c4c200c3f6a2e6474623db4aad8b2b30e713b (patch)
treedbff5baf4c1a0a2511bbd1620e09d5a6810687e4
parentfff90c86733e20d7b9a35aad616ab65fe11f6ff8 (diff)
downloadgohugo-theme-ed-c87c4c200c3f6a2e6474623db4aad8b2b30e713b.tar.gz
Do not show search term
-rw-r--r--assets/js/search.js2
-rw-r--r--layouts/partials/search-results.html3
2 files changed, 0 insertions, 5 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index 1f8fedb..d218127 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -126,7 +126,6 @@ function renderSearchResults(query, results) {
}
function clearSearchResults() {
- $('#query').empty();
$('#search-results-body').empty();
$('#results-count').empty();
$('#results-count-text').empty();
@@ -137,7 +136,6 @@ function clearAndFocusSearchInput() {
}
function updateSearchResults(query, results) {
- $('#query').html(query);
$('#search-results-body').html(results.map((hit) => `
<article class="post" data-score="${hit.score.toFixed(2)}">
<header>
diff --git a/layouts/partials/search-results.html b/layouts/partials/search-results.html
index d9615a4..f9059a3 100644
--- a/layouts/partials/search-results.html
+++ b/layouts/partials/search-results.html
@@ -1,8 +1,5 @@
<section id="search-results" class="hide-element">
<div id="search-results-header">
- <div class="search-query search-query-left">
- search term: <span id="query"></span>
- </div>
<div class="search-query search-query-right">
<span id="results-count"></span>
<span id="results-count-text"></span>