feat: search pages instead of posts, show page excerpts
This commit is contained in:
parent
0339ee8135
commit
d77961ddf0
File diff suppressed because one or more lines are too long
@ -22,11 +22,12 @@
|
|||||||
{{#contentFor "script_js"}}
|
{{#contentFor "script_js"}}
|
||||||
<script>
|
<script>
|
||||||
const options = {
|
const options = {
|
||||||
api:'{{@site.url}}/ghost/api/content/posts/?key='+"{{@custom.content_api_key}}"+'&limit=all&fields=url,title,feature_image,published_at,custom_excerpt,visibility,html',
|
api:'{{@site.url}}/ghost/api/content/pages/?key='+"{{@custom.content_api_key}}"+'&limit=all&formats=plaintext&fields=url,title,custom_excerpt',
|
||||||
threshold: 0.1,
|
threshold: 0.1,
|
||||||
ignoreLocation: true,
|
ignoreLocation: true,
|
||||||
keys: ['title','custom_excerpt','html'],
|
keys: ['title','custom_excerpt','plaintext'],
|
||||||
images: true,
|
images: false,
|
||||||
|
excerpt: 16,
|
||||||
limit: 14
|
limit: 14
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user