-
-
Save canertuzunar/0428fe3f285ae7d9e8277f3012bed3b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//src/template/blog-template.jsx | |
import React from 'react' | |
export default function Blog({pageContext: { frontmatter, html }}) { | |
return( | |
<> | |
<h1>{frontmatter.title}</h1> | |
<p>{frontmatter.date}</p> | |
<div dangerouslySetInnerHTML={{__html: html}}></div> | |
</> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment