Update web/templates/search.html
This commit is contained in:
@@ -165,7 +165,9 @@
|
|||||||
rvEmpty.style.display = 'none';
|
rvEmpty.style.display = 'none';
|
||||||
items.forEach(it=>{
|
items.forEach(it=>{
|
||||||
const url = entryUrlFor(it.entry_id);
|
const url = entryUrlFor(it.entry_id);
|
||||||
const snippet = firstWords(it.illustration || '', 20) || `Entry #${it.entry_id}`;
|
const snippet = (it.snippet && it.snippet.trim())
|
||||||
|
|| firstWords(it.illustration || '', 20)
|
||||||
|
|| `Entry #${it.entry_id}`;
|
||||||
const when = new Date(it.viewed_at);
|
const when = new Date(it.viewed_at);
|
||||||
const li = document.createElement('li');
|
const li = document.createElement('li');
|
||||||
li.innerHTML = `<a href="${url}">${snippet}</a>
|
li.innerHTML = `<a href="${url}">${snippet}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user