diff options
Diffstat (limited to 'themes/conspiracy/layouts/_default')
-rw-r--r-- | themes/conspiracy/layouts/_default/baseof.html | 5 | ||||
-rw-r--r-- | themes/conspiracy/layouts/_default/single.html | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/themes/conspiracy/layouts/_default/baseof.html b/themes/conspiracy/layouts/_default/baseof.html index eb163b6..9557f19 100644 --- a/themes/conspiracy/layouts/_default/baseof.html +++ b/themes/conspiracy/layouts/_default/baseof.html @@ -5,6 +5,7 @@ {{- partial "header.html" . -}} {{- block "main" . }}{{- end }} {{- partial "footer.html" . -}} + <script src="/pagefind/pagefind-ui.js"></script> <script> if(navigator.getEnvironmentIntegrity!==undefined)document.querySelector('body').innerHTML=`<h1>Your browser contains Google DRM</h1>"Web Environment Integrity" is a Google euphemism for a DRM that is designed to @@ -12,6 +13,10 @@ In support of an open web, this website does not function with this DRM. Please install a browser such as <a href="https://www.mozilla.org/en-US/firefox/new/">Firefox</a> that respects your freedom and supports ad blockers.`; + + window.addEventListener('DOMContentLoaded', (event) => { + new PagefindUI({element: "#search", showSubResults: true}); + }); </script> </body> </html> diff --git a/themes/conspiracy/layouts/_default/single.html b/themes/conspiracy/layouts/_default/single.html index 231daf7..c7135f8 100644 --- a/themes/conspiracy/layouts/_default/single.html +++ b/themes/conspiracy/layouts/_default/single.html @@ -6,7 +6,11 @@ {{- if .Params.Date }} <strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }} </header> {{- end }} + {{- if .Params.noindex }} <main> + {{- else }} + <main data-pagefind-body> + {{- end }} {{- if .Params.external_links }} <div class="links"> {{- range .Params.external_links }} |