Gatsby-theme-novela: Search post feature.

Created on 22 Jun 2020  路  8Comments  路  Source: narative/gatsby-theme-novela

A search should be good for blogs having so many post!

feature-request

Most helpful comment

I'd opt for using an open-source based approach as described in Gatsby's docs, e.g. flexsearch or elasticlunr. Algolia for example has limitations -- the free tier has a maximum of 10,000 search requests per month.

All 8 comments

The theme is great but is search added yet?

What about implementing Algolia?

Seems a lot better than creating your own search and there's already documentation for implementing it in React and GatsbyJS.

Just wondering if this would be opt-in since you need an API token and if there is a color theme to match it into Novela.

Willing to work on this if there's clarification from the owners! @jpvalery @brotzky

I'm am also interested in a search feature. Algolia seems to be a good idea !

I'd opt for using an open-source based approach as described in Gatsby's docs, e.g. flexsearch or elasticlunr. Algolia for example has limitations -- the free tier has a maximum of 10,000 search requests per month.

I implemented the functionality with flexsearch, but I need some help for the frontend part to display the search results - I'm a bad designer though. Anyone willing to help me? 馃檭

Bildschirmfoto 2020-12-14 um 09 57 03

As of now, I simply placed a text input (which I copied from the subscription part) at the header. When typing in a search term, you can see that the query result is shown in the console.

What needs to be done (and where I definitely need help):

  • Use query result to filter index page
  • Style search text input

Anyone willing to help for the frontend part? 馃憢

@nicolai92 Can you open a PR for this? Looks interesting.

@brotzky Any ideas on where to place this and how to implement?

@mabasic

Please have a look at the pull request: https://github.com/narative/gatsby-theme-novela/pull/452

Also note, that the feature is not yet implemented completely - additional help is still needed. 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slorber picture slorber  路  3Comments

KrisBraun picture KrisBraun  路  4Comments

bravo-kernel picture bravo-kernel  路  4Comments

sw-yx picture sw-yx  路  3Comments

alfieqashwa picture alfieqashwa  路  4Comments