Adding search to your blog
How to add search to blog
- goto www.google.com/cse google custom search engine
- add your website
- do verification, put google html onto your website, click on verify.
- submit your sitemap https://xiemingzhi.github.io/sitemap.txt on google cse console
- retrieve code snippet from google cse console
- add code snippet to _includes/themes/bootstrap-3/default.html
<form action="http://www.google.com/cse" id="cse-search-box" target="_blank" class="navbar-form navbar-right" role="search">
<input name="cx" type="hidden" value="your_cse_code_id" />
<input name="ie" type="hidden" value="UTF-8" />
<input name="q" size="30" />
<input name="sa" type="submit" value="Search" />
</form>
Comments