From abc122bccf605a24f4bc7ac6007d984bfd4b2506 Mon Sep 17 00:00:00 2001 From: Tim Glaser Date: Tue, 2 Jun 2020 13:18:48 -0700 Subject: [PATCH] feat: add component heading --- src/templates/ReferenceTemplate.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/templates/ReferenceTemplate.js b/src/templates/ReferenceTemplate.js index 36606f81d..0f0cc9ce9 100644 --- a/src/templates/ReferenceTemplate.js +++ b/src/templates/ReferenceTemplate.js @@ -14,7 +14,7 @@ const ReferenceTemplate = ({ data }) => { const [isOpen, setIsOpen] = useState(false); const { mdx } = data; const { frontmatter } = mdx; - const { title, description } = frontmatter; + const { title, description, component } = frontmatter; return ( @@ -26,7 +26,9 @@ const ReferenceTemplate = ({ data }) => { isOpen={isOpen} toggle={() => setIsOpen(!isOpen)} /> -
The main page content goes here
+
+

{component}

+
);