diff --git a/src/templates/default.jsx b/src/templates/default.jsx index 904c3b4..7659451 100644 --- a/src/templates/default.jsx +++ b/src/templates/default.jsx @@ -3,6 +3,7 @@ import { Link, graphql } from "gatsby" import Layout from "../components/layout" import bgImage from "../media/phones.png" import DocsCard from "../components/cards/docs" +import { node2slug } from "../../utils"; import rehypeReact from "rehype-react" @@ -56,7 +57,7 @@ export default function PageTemplate({ data: { markdownRemark, allMarkdownRemark return (
- + ) } @@ -100,6 +103,7 @@ export const pageQuery = graphql` frontmatter { title } + fileAbsolutePath excerpt htmlAst }