feat(widget): add search widget
This commit is contained in:
parent
e5f96c8762
commit
21f461ce78
10
layouts/partials/widget/search.html
Normal file
10
layouts/partials/widget/search.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user