[DOCS] add search box (#20251)

This adds a search box (powered by DuckDuckGo site search) to the
navbar.
pull/20303/head
Felix Lange 5 years ago committed by GitHub
parent 9a755be67b
commit 76bc99158d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      _layouts/default.html
  2. 4
      static/styles/custom/common.css

@ -35,6 +35,16 @@ common-js:
<li><a href="{{target |strip }}">{{ link.first }}</a></li>
{% endfor %}
</ul>
<form class="navbar-form pull-right" role="search" method="get" action="https://duckduckgo.com/">
<input type="hidden" name="sites" value="geth.ethereum.org">
<input type="hidden" name="kz" value="-1">
<div class="input-group navbar-input-group-fixup">
<input class="input-sm" type="text" name="q" placeholder="Search site...">
<span class="input-group-btn">
<button type="submit" class="btn btn-default btn-sm"><i class="fa fa-search" aria-hidden="true"></i></button>
</span>
</div>
</form>
</div>
</div>
</nav>

@ -50,3 +50,7 @@ table thead tr th, table tbody tr td {
border-bottom: 1px solid #ddd;
padding: 4px;
}
.navbar-input-group-fixup {
margin-top: 5px;
}

Loading…
Cancel
Save