feat: search pages instead of posts, show page excerpts

This commit is contained in:
Tom Vines 2025-08-03 22:26:37 +10:00
parent 0339ee8135
commit d77961ddf0
Signed by: dragonwocky
SSH Key Fingerprint: SHA256:vCxDSu/DvGebbNiQjCVzOuxKmT8ODOzaLx+dTRtawyk
2 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -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>