From e28311e5e8d00275575c73869e821058cc1fcd0f Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Sun, 28 Nov 2021 01:08:16 -0800 Subject: [PATCH] fix: Use slug instead of path for homepage --- src/pages/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index edb0fb680..85a0f8a11 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -129,9 +129,9 @@ const IndexPage = ({ data, pageContext, location }) => {

Get inspired

- {guides.map(({ frontmatter }, index) => ( + {guides.map(({ fields, frontmatter }, index) => ( { frontmatter.tileShorthand?.description || frontmatter.description } - path={frontmatter.path} /> ))} @@ -259,11 +258,13 @@ export const pageQuery = graphql` sort: { fields: [frontmatter___promote, frontmatter___title] } ) { nodes { + fields { + slug + } frontmatter { title description duration - path tileShorthand { title description