Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzossig <52706977+zzossig@users.noreply.github.com>2021-05-23 17:11:22 +0300
committerGitHub <noreply@github.com>2021-05-23 17:11:22 +0300
commit577a38dd6d85f1e1e5bd67982b06edae8a7df9c0 (patch)
tree0c42c31ed9a76fbc8f458a7c9d65a46f71275a84
parent36ba93cb5c72e6c22d52f61e05ec627de83c588c (diff)
parent51eb84391b55c123cc64b3812b620e53fa6d4bbb (diff)
Merge pull request #414 from rainbowpigeon/rainbowpigeon-undef-ahref-patch-2
Fix 'undefined' href in search results without highlight
-rw-r--r--layouts/partials/head/scripts.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html
index 3f0ba08..dba8cde 100644
--- a/layouts/partials/head/scripts.html
+++ b/layouts/partials/head/scripts.html
@@ -722,7 +722,7 @@
var a = document.createElement('a');
a.innerHTML = obj.item.title;
a.setAttribute('class', 'search-result__item--title');
- a.setAttribute('href', obj.item.permalink);
+ a.setAttribute('href', obj.item.uri);
var descDiv = document.createElement('div');
descDiv.setAttribute('class', 'search-result__item--desc');
@@ -1322,4 +1322,4 @@
}
// ============================================================
});
-</script> \ No newline at end of file
+</script>