Skip to content

Commit cd74f71

Browse files
committed
[x/blog] template: remove search box
The custom search algorithm that was previously implemented and served on the golang.org website has been removed via CL 292590 and CL 293412, so remove the search box in the blog.golang.org header too. For golang/go#44357. Fixes golang/go#44912. Change-Id: I51478ccb568e94df50d0dc6920a26c8f30a04c3c Reviewed-on: https://go-review.googlesource.com/c/blog/+/311969 Trust: Dmitri Shuralyov <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> X-Blog-Commit: 5d47918ba6b83a86f5752483a2310cda931dd255
1 parent d4cd530 commit cd74f71

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

blog/template/root.tmpl

-17
Original file line numberDiff line numberDiff line change
@@ -103,23 +103,6 @@
103103
<li class="Header-menuItem"><a href="{{.GodocURL}}/help/">Help</a></li>
104104
<li class="Header-menuItem"><a href="{{.BasePath}}/">Blog</a></li>
105105
<li class="Header-menuItem"><a href="https://play.golang.org/">Play</a></li>
106-
<li class="Header-menuItem Header-menuItem--search">
107-
<form class="HeaderSearch" role="search" action="{{.GodocURL}}/search">
108-
<input class="HeaderSearch-input"
109-
type="search"
110-
name="q"
111-
placeholder="Search"
112-
aria-label="Search"
113-
autocapitalize="off"
114-
autocomplete="off"
115-
autocorrect="off"
116-
spellcheck="false"
117-
required>
118-
<button class="HeaderSearch-submit" aria-label="Search">
119-
<!-- magnifying glass: --><svg class="HeaderSearch-icon" width="24" height="24" viewBox="0 0 24 24"><title>Search</title><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
120-
</button>
121-
</form>
122-
</li>
123106
</ul>
124107
</nav>
125108
</header>

0 commit comments

Comments
 (0)