<form id="search-form" action='{{ with .GetPage "/search" }}{{.Permalink}}{{end}}' method="get">
    <label hidden for="search-input">Search site</label>
    <input id="search-input" type="text" name="query" placeholder="Type here to search">
    <input id="search-submit" type="submit" value="search">
</form>