feat(widget): add search widget
This commit is contained in:
@@ -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>
|
||||||
Reference in New Issue
Block a user