File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 --gc \
6262 --minify \
6363 --baseURL "${{ steps.pages.outputs.base_url }}/"
64+ - name : Index pagefind
65+ run : npx -y pagefind --source "public"
6466 - name : Upload artifact
6567 uses : actions/upload-pages-artifact@v3
6668 with :
Original file line number Diff line number Diff line change 1+ ---
2+ title : Search
3+ layout : search
4+ ---
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ buildFuture = true
2929 name = " Projects"
3030 url = " /projects/"
3131 weight = 4
32+ [[menu .main ]]
33+ name = " Search"
34+ url = " /search/"
35+ weight = 100
3236
3337[params ]
3438 dateFormat = " Jan 2, 2006"
Original file line number Diff line number Diff line change 1+ {{ define "main" }}
2+
3+
4+ < h1 > {{ .Title }}</ h1 >
5+
6+ < p > Rendered from layouts/page/search </ p >
7+
8+ < link href ="/pagefind/pagefind-ui.css " rel ="stylesheet ">
9+ < script src ="/pagefind/pagefind-ui.js "> </ script >
10+ < div id ="search "> </ div >
11+ < script >
12+ window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
13+ new PagefindUI ( { element : "#search" , showSubResults : true } ) ;
14+ } ) ;
15+ </ script >
16+
17+ {{ end }}
You can’t perform that action at this time.
0 commit comments