Skip to content

Commit

Permalink
feat: add feedback component to right rail
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 15, 2021
1 parent c084896 commit 7e19c02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/templates/GuideTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import SEO from '../components/Seo';
import {
ContributingGuidelines,
Layout,
SimpleFeedback,
} from '@newrelic/gatsby-theme-newrelic';

const GuideTemplate = ({ data }) => {
Expand All @@ -19,7 +20,7 @@ const GuideTemplate = ({ data }) => {
body,
fields: { fileRelativePath },
} = mdx;
const { title, description, duration, tags } = frontmatter;
const { title, description, duration, tags, path } = frontmatter;

return (
<>
Expand Down Expand Up @@ -49,6 +50,11 @@ const GuideTemplate = ({ data }) => {
<Layout.PageTools>
<ContributingGuidelines fileRelativePath={fileRelativePath} />
<Resources page={mdx} />
<SimpleFeedback
pageTitle={title}
slug={path}
labels={['content', 'feedback']}
/>
<PageUpdated page={mdx} />
</Layout.PageTools>
</PageLayout>
Expand Down

0 comments on commit 7e19c02

Please sign in to comment.