add attribution to search.js

This commit is contained in:
John Bowdre 2024-01-16 12:03:24 -06:00
parent d7b7a2bcca
commit 2a960fe391

View file

@ -1,3 +1,4 @@
// based on https://victoria.dev/blog/add-search-to-hugo-static-sites-with-lunr/
function displayResults (results, store) { function displayResults (results, store) {
const searchResults = document.getElementById('results'); const searchResults = document.getElementById('results');
if (results.length) { if (results.length) {