1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-08-10 23:51:33 +00:00
Files
.github
assets
content
data
layouts
_default
partials
backlinks.html
contact.html
darkmode.html
footer.html
graph.html
head.html
katex.html
page-list.html
popover.html
search.html
textprocessing.html
toc.html
404.html
index.html
static
.gitignore
.hugo_build.lock
.prettierrc
CODE_OF_CONDUCT.md
LICENSE.txt
Makefile
README.md
config.toml
screenshot.png
brain-quartz/layouts/partials/search.html
Claudio Yanes 8779e72c77 Add attribute property to scripts from jsdelivr
Adding the integrity attribute protects the website (by refusing to load
the script) against malicious modifications of the script
in the case of jsdelivr gets hacked
2022-03-04 03:34:45 +00:00

11 lines
594 B
HTML

<div id="search-container">
<div id="search-space">
<input autocomplete="off" id="search-bar" name="search" type="text" aria-label="Search" placeholder="Search for something...">
<div id="results-container">
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/flexsearch@0.7.21/dist/flexsearch.bundle.js" integrity="sha256-i3A0NZGkhsKjVMzFxv3ksk0DZh3aXqu0l49Bbh0MdjE=" crossorigin="anonymous" defer></script>
{{ $js := resources.Get "js/search.js" | resources.Fingerprint "md5" | resources.Minify }}
<script defer src="{{ $js.Permalink }}"></script>