generated from 11ty/eleventy-base-blog
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.njk
33 lines (30 loc) · 1.12 KB
/
search.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
layout: layouts/base.njk
permalink: /search/
templateClass: 'search'
---
{% block scripts %}
<script src="https://cdn.jsdelivr.net/gh/nextapps-de/[email protected]/dist/flexsearch.bundle.js"></script>
<script src="/assets/scripts/search.js"></script>
{% endblock %}
<header>
{% include "partials/menu.njk" %}
</header>
<main class="{{ templateClass }}">
<section class="container">
<h1>Search</h1>
<form id="search-form">
<div class="input-group">
<select class="form-select" id="field-select" style="max-width: 256px" name="field">
<option value="all" selected>All</option>
<option value="title">Title</option>
<option value="content">Content</option>
</select>
<input type="text" id="search-input" class="form-control" placeholder="Query" aria-label="Query"
aria-describedby="search-addon">
<button id="search-button" class="btn btn-primary" type="submit">Search</button>
</div>
</form>
<div id="results"></div>
</section>
</main>