File tree 11 files changed +34
-7
lines changed
11 files changed +34
-7
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 3
3
4
4
< h1 > {{ .Title }}</ h1 >
5
5
6
- < p class ="d-none "> Rendered from layouts/_defaults/list </ p >
6
+ {{/* < p class ="d-none "> Rendered from layouts/_defaults/list </ p > */}}
7
7
8
8
{{ range .Pages.ByPublishDate.Reverse }}
9
9
Original file line number Diff line number Diff line change 2
2
3
3
< h1 > {{ .Title }}</ h1 >
4
4
5
- < p class ="d-none "> Rendered from /layouts/_defaults/single.html </ p >
5
+ {{/* < p class ="d-none "> Rendered from /layouts/_defaults/single.html </ p > */}}
6
6
7
7
{{ .Content }}
8
8
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 }}
Original file line number Diff line number Diff line change 3
3
4
4
< h1 > {{ .Title }}</ h1 >
5
5
6
- < p class ="d-none "> Rendered from layouts/papers/list </ p >
6
+ {{/* < p class ="d-none "> Rendered from layouts/papers/list </ p > */}}
7
7
8
8
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "2006" }}
9
9
< div class ="py-3 ">
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
2
3
- < p class ="d-none "> Rendered from /layouts/papers/single.html </ p >
3
+ {{/* < p class ="d-none "> Rendered from /layouts/papers/single.html </ p > */}}
4
4
5
5
< div class ="my-3 ">
6
6
< h2 > {{ .Title }}</ h2 >
Original file line number Diff line number Diff line change 1
1
< head >
2
2
< meta charset ="utf-8 ">
3
3
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
4
- < title > {{ .Site. Title }}</ title >
4
+ < title > {{ .Title }}</ title >
5
5
< link href ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css " rel ="stylesheet " integrity ="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH " crossorigin ="anonymous ">
6
6
{{ partial "style.html" . }}
7
7
</ head >
Original file line number Diff line number Diff line change 7
7
8
8
< h1 > People</ h1 >
9
9
10
- < p class ="d-none "> Rendered from /layouts/people/people </ p >
10
+ {{/* < p class ="d-none "> Rendered from /layouts/people/people </ p > */}}
11
11
12
12
{{ $categories := slice "Faculty" "PostDoc" "PhD" "Masters" "Visiting" "Alumni" }}
13
13
Original file line number Diff line number Diff line change 2
2
3
3
< h1 > {{ .Title }}</ h1 >
4
4
5
- < p class ="d-none "> Rendered from /layouts/people/single.html </ p >
5
+ {{/* < p class ="d-none "> Rendered from /layouts/people/single.html </ p > */}}
6
6
7
7
< div class ="row ">
8
8
< div class ="col-6 col-md-3 ">
You can’t perform that action at this time.
0 commit comments