You might want to explore this ( I haven't done this myself yet )...
1. Dynamically build a JSON object saved into a file... pull in URL,
META title, META description, META keywords ... then have some JS
"instant search" against that JSON object to display results very
quickly on the page. (might be too large of a JS file for big sites...
but bonus is that once the file is downloaded 1 time it should be
cached).
2. If the JSON search JS doesn't match any results offer a "Search on
Google" option at the end of the results... which will submit the
search input to google like "Some Keywords site:http://
www.example.com"
... another option if you have ALL your pages in a navigation menu ...
do some sort of JS search against that HTML markup ... perhaps could
use "data-" attributes to add extra value, e.g. keywords, to items
<li><a href="page-x" data-keywords="page sample test">Page X</a></li>
Perhaps same idea using jQuery $.load() to pull in an external file
and then search against it's markup?... better with JSON (smaller file
size).
Hope that gives you some ideas...I'm going to need to do a similar
thing for a static project I'm working on (using Jykell, hosted on
GitHub Pages). I will probably make use of a Navigation Menu that has
all the pages listed in the markup on every page...
FYI:
https://github.com/firemonkeyio/firemonkeyio - no code in the
project yet ;-)
On Apr 20, 4:15 pm, Tom Tuddenham <
ferrisox...@gmail.com> wrote:
> Commercial, but a quick answer would be Google's site search:
>
>
http://www.google.com/sitesearch/
>
> The only other thing I can think of is to have some kind of AJAX
> driven search based on static pages, but that would involve a lot of
> work building up static indices and then searching into them.
>
> Adding dynamic features to nanoc is an intriguing problem area :)
>