File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
starters/blog/src/templates Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,6 @@ const BlogPostTemplate = ({ data, location }) => {
6767export default BlogPostTemplate
6868
6969export const pageQuery = graphql `
70- fragment PrevNextFields on MarkdownRemark {
71- fields {
72- slug
73- }
74- frontmatter {
75- title
76- }
77- }
7870 query BlogPostBySlug($id: String!, $next: String, $previous: String) {
7971 site {
8072 siteMetadata {
@@ -92,10 +84,20 @@ export const pageQuery = graphql`
9284 }
9385 }
9486 previous: markdownRemark(id: { eq: $previous }) {
95- ...PrevNextFields
87+ fields {
88+ slug
89+ }
90+ frontmatter {
91+ title
92+ }
9693 }
9794 next: markdownRemark(id: { eq: $next }) {
98- ...PrevNextFields
95+ fields {
96+ slug
97+ }
98+ frontmatter {
99+ title
100+ }
99101 }
100102 }
101103`
You can’t perform that action at this time.
0 commit comments