Easy Ghost Search

Easy Ghost Search

Having migrated to the new Ghost install. I'm itching to try my hand at adding a big feature to Ghost. That the platform has implemented paid newsletter services but yet to offer a way to add search or even enable a simple default option is beyond me. For the past year I've never had search on my blog.

Having looked at several options on the official documentation, finding them to not be the right solution for my case. I stumbled upon a neat simple solution in the Ghost forums.

SearchinGhostEasy

It is an implementation of a search library. The following would be on how you can add search to your Ghost blog in minutes!

Integrations

Go to "Integrations". Click the "Add custom integration" button. Name it "SearchinGhostEasy". Copy the "Content API Key" for the next step.

Injections

Go to "Settings > Code injection". Insert the code below in "Site Footer" box.

<script src="https://cdn.jsdelivr.net/gh/gmfmi/searchinghost-easy@latest/dist/searchinghost-easy-basic.js"></script>
<script>
    new SearchinGhostEasy({
        contentApiKey: '<CONTENT_API_KEY>'
    });
</script>

Change the <CONTENT_API_KEY> to the key value from the previous step. Oh, and click "Save"!

Done!

If I had known that adding search to Ghost would be so painless I would have done it a long time ago. Thanks for SearchinGhostEasy team for providing this! There's many other options that this search function can be tweaked, such as "search from icon" and "templates" for different looks. Do check those out on Github.