mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
feat: bootstrap docs layout & sidebar
This commit is contained in:
@@ -1,27 +1,25 @@
|
||||
import React from "react";
|
||||
import { graphql } from "gatsby";
|
||||
import SEO from "../components/SEO";
|
||||
import Layout from "../components/Layout";
|
||||
import { Sidebar } from "../components/Docs";
|
||||
import React from "react"
|
||||
import { graphql } from "gatsby"
|
||||
import SEO from "../components/SEO"
|
||||
import DocsLayout from "../components/DocsLayout"
|
||||
|
||||
// @todo maybe find alternative type for data
|
||||
const LanguagePost = ({ data }: any) => {
|
||||
const { html, frontmatter } = data.file.post;
|
||||
const { html, frontmatter } = data.file.post
|
||||
console.log(data)
|
||||
return (
|
||||
<Layout>
|
||||
<DocsLayout>
|
||||
<SEO title={frontmatter.title} />
|
||||
<Sidebar />
|
||||
<div dangerouslySetInnerHTML={{ __html: html }} />
|
||||
</Layout >
|
||||
</DocsLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default LanguagePost;
|
||||
export default LanguagePost
|
||||
|
||||
export const query = graphql`
|
||||
query LanguagePost($file: String!) {
|
||||
file(relativePath: {eq: $file }) {
|
||||
file(relativePath: { eq: $file }) {
|
||||
post: childMarkdownRemark {
|
||||
html
|
||||
frontmatter {
|
||||
|
||||
Reference in New Issue
Block a user