stupid prismjs

This commit is contained in:
Xetera
2019-07-26 14:37:31 -07:00
parent 6982552205
commit 36f4e41e16
16 changed files with 2234 additions and 646 deletions
+29
View File
@@ -0,0 +1,29 @@
import * as React from "react";
import { graphql } from "gatsby";
import Layout from "../components/layout";
const LanguagePost = ({ data }) => {
const { html } = data.file.post;
console.log(data)
return (
<Layout>
<div dangerouslySetInnerHTML={{ __html: html }} />
</Layout >
)
}
export default LanguagePost;
export const query = graphql`
query LanguagePost($file: String!) {
file(relativePath: {eq: $file }) {
post: childMarkdownRemark {
html
frontmatter {
author
date
}
}
}
}
`