summaryrefslogtreecommitdiff
path: root/themes/conspiracy/layouts/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/conspiracy/layouts/baseof.html')
-rw-r--r--themes/conspiracy/layouts/baseof.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/themes/conspiracy/layouts/baseof.html b/themes/conspiracy/layouts/baseof.html
index d8ebc93..32a5423 100644
--- a/themes/conspiracy/layouts/baseof.html
+++ b/themes/conspiracy/layouts/baseof.html
@@ -5,11 +5,26 @@
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
- <script src="/pagefind/pagefind-ui.js" defer></script>
+ <script type="text/javascript" src="/pagefind/pagefind-ui.js" defer></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
new PagefindUI({element: "#search", showSubResults: true});
});
</script>
+ <script type="speculationrules">
+ {
+ "prerender": [
+ {
+ "source": "document",
+ "where": {
+ "and": [
+ {"href_matches": "/*"}
+ ]
+ },
+ "eagerness": "moderate"
+ }
+ ]
+ }
+ </script>
</body>
</html>