| <!-- |
| Copyright 2019 The Go Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style |
| license that can be found in the LICENSE file. |
| --> |
| |
| {{define "header_search"}} |
| {{/* This ideally would be empty, but you cannot redefine a template with only whitespace or comments. */}} |
| <wbr> |
| {{end}} |
| |
| {{define "pre_content"}} |
| <link href="/static/css/homepage.css?version={{.AppVersionLabel}}" rel="stylesheet"> |
| {{end}} |
| |
| {{define "main_content"}} |
| <div class="Container"> |
| <div class="Homepage"> |
| <img class="Homepage-logo" src="/static/img/gopher-homepage.jpg" alt="Cartoon gopher typing"> |
| <form class="Homepage-searchForm" action="/search" role="search"> |
| <div class="Homepage-buttonGroup"> |
| <input |
| id="AutoComplete" |
| role="textbox" |
| aria-label="Search for Go packages" |
| type="text" |
| name="q" |
| placeholder="Search for Go packages" |
| autocapitalize="off" |
| autocomplete="off" |
| autocorrect="off" |
| spellcheck="false" |
| title="Search for Go packages" |
| autofocus="true"> |
| <button type="submit" class="Homepage-searchButton">Search</button> |
| </div> |
| </form> |
| <span class="Homepage-searchHelp"> |
| <div class="Homepage-exampleSearches"> |
| <span class="Homepage-exampleSearchesLabel">Example searches:</span> |
| <a class="Homepage-exampleSearch" href="/search?q=http">“http”</a> |
| <a class="Homepage-exampleSearch" href="/search?q=command">“command”</a> |
| <a class="Homepage-exampleSearch" href="/search?q=yaml+OR+json+OR+xml">“yaml OR json OR xml”</a> |
| </div> |
| <a href="/search-help" target="_blank" rel="noopener" class="Homepage-helpLink"> |
| Search help <span><img src="/static/img/icon-launch.svg" alt=""></span> |
| </a> |
| <span> |
| </div> |
| </div> |
| {{end}} |
| |
| {{define "pre_footer"}} |
| <div class="Questions"> |
| <div class="Questions-content"> |
| <div class="Questions-header">Frequently asked questions:</div> |
| <ul> |
| <li><a href="https://go.dev/about#adding-a-package">How can I add a package?</a></li> |
| <li><a href="https://go.dev/about#removing-a-package">How can I remove a package?</a></li> |
| <li><a href="https://go.dev/about#creating-a-badge">How can I add a go badge in my README file?</a></li> |
| </ul> |
| </div> |
| </div> |
| {{end}} |