Add Stork support
This commit is contained in:
parent
ce25ef91c6
commit
65853fccd2
7 changed files with 130 additions and 8 deletions
13
layouts/partials/stork.html
Normal file
13
layouts/partials/stork.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="stork-search">
|
||||
<input data-stork="posts" placeholder="🔎 Search {{ .Site.Title }}...">
|
||||
</div>
|
||||
<div data-stork="posts-output"></div>
|
||||
<link rel="stylesheet" href="/stork/stork.css">
|
||||
<script src="/stork/stork.js"></script>
|
||||
<script>
|
||||
stork.initialize("/stork/stork.wasm");
|
||||
stork.register(
|
||||
"posts",
|
||||
"/home.st"
|
||||
);
|
||||
</script>
|
Reference in a new issue