chore: analytics
This commit is contained in:
parent
2ddee18d26
commit
ac200ddcfd
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "8.4.5",
|
"version": "8.4.6",
|
||||||
"description": "The source for my personal site. Built using 11ty.",
|
"description": "The source for my personal site. Built using 11ty.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
const query = $input.value
|
const query = $input.value
|
||||||
const results = (query.length > 1) ? getSearchResults(query) : []
|
const results = (query.length > 1) ? getSearchResults(query) : []
|
||||||
if (query === '') renderSearchResults([])
|
if (query === '') renderSearchResults([])
|
||||||
|
if (results && plausible) plausible(`Search query: ${query}`)
|
||||||
renderSearchResults(results)
|
renderSearchResults(results)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Reference in a new issue