Hugo-theme-stack/layouts/partials/widget/search.html
2020-09-26 11:40:52 +02:00

10 lines
383 B
HTML

<form action="/search" class="search-form widget" {{ with .OutputFormats.Get "json" -}}data-json="{{ .Permalink }}" {{- end }}>
<p>
<label>Search</label>
<input name="keyword" required placeholder="Type something..." />
<button title="Search">
{{ (resources.Get "icons/search.svg").Content | safeHTML }}
</button>
</p>
</form>