Adding Google Search

So I wanted to add Google search for my site, thus reducing the need to implement search. I found a great article on and ended up implementing my search form using:

<form class="navbar-search pull-right" method="get" action="">
<input type="text" class="search-query" placeholder="Search" name="q" maxlength="255">
<input type="hidden" name="sitesearch" value="" />

which combines the Twitter Bootstrap search form example, and Dave's help. I thought this was worth mentioning both to help other people find Dave's article and because I used a hidden field which is a bit different than his example.

Update: this was later removed, it didn't stay up to date enough, i need a new solution at some point.