trwnh.com/unified.test.hugo/layouts/partials/search/search-form.html

5 lines
No EOL
342 B
HTML

<form id="search-form" action='{{ with .GetPage (printf "%s%s" .CurrentSection.RelPermalink "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>