File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 61
61
--gc \
62
62
--minify \
63
63
--baseURL "${{ steps.pages.outputs.base_url }}/"
64
+ - name : Index pagefind
65
+ run : npx -y pagefind --source "public"
64
66
- name : Upload artifact
65
67
uses : actions/upload-pages-artifact@v3
66
68
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
29
29
name = " Projects"
30
30
url = " /projects/"
31
31
weight = 4
32
+ [[menu .main ]]
33
+ name = " Search"
34
+ url = " /search/"
35
+ weight = 100
32
36
33
37
[params ]
34
38
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