File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!-- placeholder -->
Original file line number Diff line number Diff line change
1
+ {{- define "head" -}}
2
+ < link href ="/pagefind/pagefind-ui.css " rel ="stylesheet ">
3
+ < script src ="/pagefind/pagefind-ui.js "> </ script >
4
+
5
+
6
+ {{- end -}}
7
+
8
+ {{- define "main" -}}
9
+ < main data-pagefind-ignore style ="width: 100% ">
10
+ < div id ="search "> </ div >
11
+ </ main >
12
+ < script >
13
+ window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
14
+ new PagefindUI ( { element : "#search" , showSubResults : true } ) ;
15
+ } ) ;
16
+ </ script >
17
+ {{- end -}}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -eu;
3
+ rm -rf ./public
4
+ hugo --gc --buildDrafts
5
+ mkdir -p ./static/
6
+ rm -rf ./static/pagefind
7
+ pagefind --site ./public --output-path ./static/pagefind --root-selector main
8
+ hugo serve --buildDrafts --navigateToChanged
9
+
You can’t perform that action at this time.
0 commit comments