-
Notifications
You must be signed in to change notification settings - Fork 248
Add Search capabilities #142
Comments
This is interesting. We can make a different md-collection-loader for generating data and feed it with algolia |
Yeah an option like for rss feed.
|
How about a different loader or maybe a new package (like a plugin) ? |
I think this should not be in the core. This belongs to a plugin. Already done this. See https://github.com/thangngoc89/blog/blob/aa40e1b710c06112006ac175972338467adb56b3/web_modules/utils/statinamic-agolia-plugin.js Generate feed should be done this way too. No need for debounce trick (faster markdown build) poke @MoOx |
We can borrow idea from https://blog.algolia.com/instant-search-blog-documentation-jekyll-plugin/ |
Also interesting http://lunrjs.com/ |
This is what it takes to add agolia to a Statinamic site |
ETA? |
Lunr.js or algolia ? Or a simple component that search collection ? |
We might offer the choice during setup and/or have the simplest solution (without third-party) and offer a doc to add another solution. |
…bpack) (#13) According to #1, you were looking for a nice platform to make a website. Jekyll is imo outdated. The HTML approach has its benefit, but also a lot of downside. And since istanbul/nyc are JavaScript project, what about making this website with JavaScript? @kentcdodds said everything I think here #1 (comment) -233218919 So here is a commit to replace Jekyll by Phenomic. Why Phenomic? Here is my answer :) #1 (comment) -233230716 Here is a “Getting Started” page that might help you starting with Phenomic https://phenomic.io/docs/getting-started/. If there is not enough things, feel free to reach us on the community chat https://gitter.im/MoOx/phenomic ## Benefits - Modern JavaScript (Babel) and CSS (PostCSS + cssnext) - Webpack: all assets are tracked. No missing background image or things like that. - Component approach thanks to React. You build your website with lego blocks. - CSS Modules. No more global styles! (well there is some but just a bit) - Awesome developer/writer experience: HOT LOADING (no full page refresh needed, just work on a file and save it: BOOM auto partial reload!) - Client side navigation when JS is on: no full page refresh! (If JS is off, no problem, HTML pages are generated during deploy) ### Possibilities - OFFLINE support. You can offer offline via AppCache (legacy solution) or ServiceWorker (require HTTPS). Latest is recommended and can be activated via a flag -Live search (sort of built-in will be added soon, feel free to track MoOx/phenomic#142 - it’s already possible, but require some boilerplate - some people already implemented it on their websites) ## Minor changes (that can be reverted/changed anyway) - Tutorials are not “posts”, but real simple pages - Website is now responsive :) - Phenomic default boilerplate provide system font, which I think is a good thing https://medium.design/system-shock-6b1dc6d6596f#.yupv0c7mu - Reference to Phenomic in the footer - I added a link to github org in the header, I found this was missing - I added a Blog section in the header, hidden on production for now since blog entries are dumb :) ## Downside - No native integration with Github Pages, so you will need to follow some instructions to setup auto deploy via Travis (don’t worry, this is very easy https://phenomic.io/docs/usage/gh-pages/)
I'm on it. TODO:
Resources:
Example record
|
Algoliasearch jekyll added a |
This might also be interesting to check out http://fusejs.io/ |
Considering doing a plugin for this |
Will revisit this idea later. |
Should be very easy since we have collections to search in all meta (title, tags etc) - but not in body of the posts.
Maybe agolia can help for the body (ref putaindecode/putaindecode.io#535)
The text was updated successfully, but these errors were encountered: