shashankmehta/greyshade

Search form in greyshade

Closed this issue · 2 comments

How to add simple simple search form in greyshade ?
I try put the same code from classic octopress to navigation

<form action="{{ site.simple_search }}" method="get">
  <fieldset role="search">
    <input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}" />
    <input class="search" type="text" name="q" results="0" placeholder="Search"/>
  </fieldset>
</form>

But the result not perfect,

Yes I'm aware of this. The octopress code doesn't fit in the theme.
I'll add the search form soon.

i am temporary using form search google http://support.google.com/customsearch/bin/answer.py?hl=en&answer=1351747

<form id="cse-search-box" action="http://google.com/cse">
  <input type="hidden" name="cx" value="Your Search ID" />
  <input type="hidden" name="ie" value="UTF-8" />
  <input type="text" name="q" size="21" />
  <input type="submit" name="sa" value="Search" />
</form>
<img src="http://www.google.com/cse/images/google_custom_search_smwide.gif">