11ty Serverless Search

An example of using 11ty Serverless to create site search using local and External.

External results are fetched from Stephanie Eckles dev.to profile. 11ty serverless doesn't currently support typical collections, but it does support collections created from local data under specific conditions. So, we run a prebuild/prestart Node script to generate local data containing an array of the local post data.

When a search is requested, 11ty Serverless serves the page by passing the combined custom collection holding the external and local data through an 11ty filter to search the content and return search results.

Use this template

All Posts