From 65757a0f5e7e3715dd477c96ad888c1e17e14fdd Mon Sep 17 00:00:00 2001 From: rainbowpigeon <16717153+rainbowpigeon@users.noreply.github.com> Date: Mon, 24 May 2021 19:09:22 +0800 Subject: [PATCH] Fix undefined mobile search result attributes --- layouts/partials/head/scripts.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index dba8cde..773961f 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -919,8 +919,8 @@ if (results.length > 0) { results.forEach(function (result) { var item = document.createElement('a'); - item.setAttribute('href', result.uri); - item.innerHTML = '
📄 ' + result.title + '
' + (result.description ? result.description : result.content) + '
'; + item.setAttribute('href', result.item.uri); + item.innerHTML = '
📄 ' + result.item.title + '
' + (result.item.description ? result.item.description : result.item.content) + '
'; content.appendChild(item); }); } else {