add attribution to search.js

This commit is contained in:
John Bowdre 2024-01-16 12:03:24 -06:00
parent 25d657ea47
commit 1e3d802ea8

View file

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