Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Search bar useful? #235

Closed
erikmartinessanches opened this issue Nov 14, 2014 · 5 comments
Closed

Search bar useful? #235

erikmartinessanches opened this issue Nov 14, 2014 · 5 comments
Assignees
Labels
Milestone

Comments

@erikmartinessanches
Copy link

Is the search bar meant to be used, for site-wide searches, considering the static nature of Jekyll? The search bar in the default Jekyll Bootstrap setup doesn't work for me.

@groundh0g
Copy link
Collaborator

It's a placeholder. You can implement your own, or (more likely) create a custom search with something like https://www.google.com/cse/ or ...

  <form class="navbar-form navbar-right" role="search" method="get" action="http://www.bing.com/search">
    <div class="form-group">
      <input type="text" class="form-control" placeholder="Search" name="q" />
      <input type="hidden" name="q1" value="site:wikipedia.org" />
    </div>
    <button type="submit" class="btn btn-default">Submit</button>
  </form>

... you can replace the existing search box in _includes/themes/{themename}/default.html something like that. (Obviously, you'll need to replace "wikipedia.org" with your site.)

@plusjade
Copy link
Owner

I use https://swiftype.com/ , a javascript-based third-party search tool great for jekyll sites.

@groundh0g groundh0g self-assigned this Feb 27, 2015
@groundh0g
Copy link
Collaborator

Assigned this to myself. Plan to implement a provider model similar to comments and analytics where you can pick from several search providers, or create a custom one using those as examples.

Thinking about adding the following to start.

Feel free to comment, interject, or object.

@groundh0g groundh0g added this to the v 0.5.0 milestone Mar 17, 2015
@groundh0g
Copy link
Collaborator

Plugin might be too elaborate for this. I use a simple JS solution (like @plusjade). It's clean, looks nice, and just works. If I do go the plugin route, this will get bumped to next release.

@groundh0g
Copy link
Collaborator

Moving to FAQ / Tutorial. Great ideas, but not practical for vanilla installation of JB.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants