@@ -36,7 +36,7 @@ const IndexPage = ({ pageContext }) => {
3636 aria-label = "pagination"
3737 style = { {
3838 maxWidth : "600px" ,
39- margin : "0 auto"
39+ margin : "0 auto" ,
4040 } }
4141 >
4242 < Link
@@ -46,7 +46,7 @@ const IndexPage = ({ pageContext }) => {
4646 style = { {
4747 // Temp hack to prevent clicking
4848 // TODO: Render a link without a href instead
49- pointerEvents : first ? "none" : "auto"
49+ pointerEvents : first ? "none" : "auto" ,
5050 } }
5151 >
5252 Previous
@@ -56,7 +56,7 @@ const IndexPage = ({ pageContext }) => {
5656 to = { nextUrl }
5757 disabled = { last }
5858 style = { {
59- pointerEvents : last ? "none" : "auto"
59+ pointerEvents : last ? "none" : "auto" ,
6060 } }
6161 >
6262 Next Page
@@ -97,7 +97,7 @@ function searchPosts(posts, search) {
9797 let titles = { } ;
9898
9999 // Get all posts that have a matching title
100- const filterPostsByTitle = posts . filter ( post => {
100+ const filterPostsByTitle = posts . filter ( ( post ) => {
101101 const hook = post . node . frontmatter ;
102102 const titleLowerCase = hook . title . toLowerCase ( ) ;
103103 const doesInclude = titleLowerCase . includes ( search . toLowerCase ( ) ) ;
@@ -110,7 +110,7 @@ function searchPosts(posts, search) {
110110 } ) ;
111111
112112 // Get all posts that have a matching description and DON'T match by title
113- const filterPostsByDescription = posts . filter ( post => {
113+ const filterPostsByDescription = posts . filter ( ( post ) => {
114114 const hook = post . node . frontmatter ;
115115 const titleLowerCase = hook . title . toLowerCase ( ) ;
116116 const description = post . node . html || "" ;
0 commit comments