mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
stupid prismjs
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user