mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-26 16:34:51 +00:00
fix: title not being selected properly, bump hugo-obsidian for uri fix
This commit is contained in:
parent
dd047305af
commit
23380d0519
2
.github/workflows/deploy.yaml
vendored
2
.github/workflows/deploy.yaml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|
||||||
- name: Build Link Index
|
- name: Build Link Index
|
||||||
uses: jackyzha0/hugo-obsidian@v2.16
|
uses: jackyzha0/hugo-obsidian@v2.17
|
||||||
with:
|
with:
|
||||||
index: true
|
index: true
|
||||||
input: content
|
input: content
|
||||||
|
@ -25,11 +25,14 @@ function debounce(func, timeout = 300) {
|
|||||||
|
|
||||||
registerHandlers(debounce((e) => {
|
registerHandlers(debounce((e) => {
|
||||||
term = e.target.value
|
term = e.target.value
|
||||||
searchContents(term)
|
if (term !== "") {
|
||||||
.then((res) => res.results.map(entry => ({
|
searchContents(term)
|
||||||
url: entry.object.metadata.url,
|
.then((res) => res.results.map(entry => ({
|
||||||
content: entry.snippet,
|
url: entry.object.properties.url,
|
||||||
title: entry.object.title
|
content: entry.snippet,
|
||||||
})))
|
title: entry.object.metadata.title
|
||||||
.then(results => displayResults(results))
|
})
|
||||||
|
))
|
||||||
|
.then(results => displayResults(results))
|
||||||
|
}
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user