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"}}
|
||||
<script>
|
||||
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,
|
||||
ignoreLocation: true,
|
||||
keys: ['title','custom_excerpt','html'],
|
||||
images: true,
|
||||
keys: ['title','custom_excerpt','plaintext'],
|
||||
images: false,
|
||||
excerpt: 16,
|
||||
limit: 14
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user