|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | | - <title>{{ title or metadata.title }}</title> |
| 6 | + <title data-pagefind-meta="title">{{ title or metadata.title }}</title> |
7 | 7 | <meta name="description" content="{{ description or metadata.description }}"> |
8 | 8 | {% favicon './public/favicon.svg' %} |
9 | 9 | {# Atom and JSON feeds included by default #} |
|
21 | 21 | See https://github.com/11ty/eleventy/issues/2807 |
22 | 22 | #} |
23 | 23 | <link rel="stylesheet" href="/css/index.css" /> |
| 24 | + <link rel="stylesheet" href="/css/search.css" /> |
24 | 25 | {# Add an arbitrary string to the bundle #} |
25 | 26 | {# {%- css %}* { box-sizing: border-box; }{% endcss %} #} |
26 | 27 | {# Render the CSS bundle using Inlined CSS (for the fastest site performance in production) #} |
|
111 | 112 | </div> |
112 | 113 | <div id="bug-tracker-form" class="flex-column flex-between-center"> |
113 | 114 | <h1>Bug Tracker</h1> |
114 | | - <form class="flex-row flex-start-center" action="/search" method="get"> |
| 115 | + <div id="search"></div> |
| 116 | + {# <form class="flex-row flex-start-center" action="/search" method="get"> |
115 | 117 | <label for="jq-primarySearch">Search Tickets</label> |
116 | 118 | <input type="text" value="" title="Search jQuery" name="q" id="jq-primarySearch"> |
117 | 119 | <button type="submit" name="go" id="jq-searchButton"> |
118 | 120 | <span class="visually-hidden">Search</span> |
119 | 121 | </button> |
120 | | - </form> |
| 122 | + </form> #} |
121 | 123 | </div> |
122 | 124 | </header> |
123 | 125 | <main id="skip" class="flex-column"> |
|
139 | 141 | <a href="https://openjsf.org">The OpenJS Foundation</a> |
140 | 142 | </footer> |
141 | 143 | </div> |
142 | | - <!-- Current page: {{ page.url | htmlBaseUrl }} --> |
| 144 | + <script src="/_pagefind/pagefind-ui.js" type="text/javascript"></script> |
| 145 | + <script> |
| 146 | + window.addEventListener('DOMContentLoaded', (event) => { |
| 147 | + new PagefindUI({ |
| 148 | + element: "#search", |
| 149 | + showImages: false, |
| 150 | + translations: { |
| 151 | + placeholder: '', |
| 152 | + zero_results: 'No matches found.' |
| 153 | + } |
| 154 | + }) |
| 155 | + }) |
| 156 | + </script> |
143 | 157 | </body> |
144 | 158 | </html> |
0 commit comments