Skip to content

Commit

Permalink
chore: Use slug instead of guide path in guide template
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Nov 28, 2021
1 parent 65d7f5c commit 83718eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templates/GuideTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const GuideTemplate = ({ data, location }) => {
frontmatter,
body,
relatedResources,
fields: { fileRelativePath },
fields: { fileRelativePath, slug },
} = mdx;
const { title, description, duration, tags, path } = frontmatter;
const { title, description, duration, tags } = frontmatter;

return (
<>
Expand Down Expand Up @@ -57,7 +57,7 @@ const GuideTemplate = ({ data, location }) => {
<Layout.PageTools>
<SimpleFeedback
pageTitle={title}
slug={path}
slug={slug}
labels={['content', 'feedback']}
/>
<ContributingGuidelines fileRelativePath={fileRelativePath} />
Expand All @@ -80,13 +80,13 @@ export const pageQuery = graphql`
body
frontmatter {
duration
path
title
description
tags
}
fields {
fileRelativePath
slug
}
relatedResources(limit: 5) {
title
Expand Down

0 comments on commit 83718eb

Please sign in to comment.