feat(widget): add search widget

This commit is contained in:
Jimmy Cai 2020-09-26 11:40:52 +02:00
parent e5f96c8762
commit 21f461ce78
No known key found for this signature in database
GPG key ID: 3EA408E527F37B18

View file

@ -0,0 +1,10 @@
<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>