hauntedthemes / ghost-search Goto Github PK
View Code? Open in Web Editor NEWA simple but powerful search library for Ghost Blogging Platform.
Home Page: https://www.hauntedthemes.com/
A simple but powerful search library for Ghost Blogging Platform.
Home Page: https://www.hauntedthemes.com/
Well, I have followed everything and works perfectly.
Seems, Search through the title and content of posts doesn't work and it froze the browser tab.
https://www.hauntedthemes.com/ghost-search-our-first-open-source-library-for-ghost
Is there a way to search both posts and tags?
api: {
resource: ['posts','tags'],
Great library!
Would be awesome to be able to use it with webpack. Getting GhostSearch is not defined
when I try to import it. With normal script it works well.
Karens
Using the example in the docs with version 1.0.1
<script>
let ghostSearch = new GhostSearch({
key: '22444f78447824223cefc48062', // This is just a demo key. Replace the key with a real one. See Step 3.
url: 'https://demo.ghost.io', // This is just a demo host. Replace the demo url with a real one. See Step 3.
})
</script>
leads to a log of Content API Client Library host missing. Please set the host. Must not end in a trailing slash.
Changing key
to host
fixes this.
Hey folks, thanks for the lib. I was wondering if this lib works with a separated ghost frontend?
Recently the search is crashing if you input more than 10 characters in it, leaving the page unresponsive. Has anyone come across this and are there any possible solutions to this problem?
How can i use sob folder search instead of subdomain. For example:
I want to search Posts on example.com/blog and not blog.example.com
But i do not have the Ghost pro, i make the redirect via ngnix.
Hi ๐
I realize there's a little problem
When you add options for the Api it is not taking into account.
โ For example
api: {
resource: 'posts',
parameters: {
limit: 10,
fields: ['title', 'slug', 'custom_excerpt'],
},
},
As you can see, I only call 10 post, but It return all post and does not take into account any of these options that is added.
โ Checking the code, I think I found the possible error.
ghost-search/src/ghost-search.js
Line 92 in e820cf8
This is solved by removing this line.
It is also necessary to update the documentation with the new values that the version two of the Api accepts.
Hi there,
The search works well but I'm wondering if it's possible to have a results PAGE? From what I've seen so far, this gives search results inline on the page the search query was placed. What if I want to send my user to entirely new page with the search parameter in the url?
Thank you for what looks like a great library!
I'm struggling to make it work though receiving ReferenceError: GhostSearch is not defined
. I believe it is ๐
I've forked the casper theme and made edits to author.hbs
and default.hbs
if you'd be so kind as to take a look. I think I've followed the documentation to the letter (including npm install ghost-search
in the ghost container I'm running).
repo - https://github.com/IronicBadger/Casper
site - https://blog.ktz.me/author/alex/
Temporary div for returning search results on my author page (for now). Thanks in advance for any assistance you can offer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.