fix: fix page & post issues
This commit is contained in:
parent
20cc481ca4
commit
7ceda0bc7a
4 changed files with 71 additions and 13 deletions
|
|
@ -1,18 +1,15 @@
|
|||
import React from "react"
|
||||
import * as React from "react"
|
||||
import { graphql, PageProps } from "gatsby"
|
||||
import { MDXRenderer } from "gatsby-plugin-mdx"
|
||||
import Layout from "../components/organisms/Layout"
|
||||
|
||||
const Page = ({ data: { mdx }, path }: PageProps<Queries.PageQuery>) => {
|
||||
console.log("Page...", { path, mdx })
|
||||
return (
|
||||
<Layout pageTitle={mdx?.frontmatter?.title ?? ""}>
|
||||
<MDXRenderer>
|
||||
{mdx?.body ?? ""}
|
||||
</MDXRenderer>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
const Page = ({ data: { mdx }, path }: PageProps<Queries.PageQuery>) => (
|
||||
<Layout pageTitle={mdx?.frontmatter?.title ?? ""}>
|
||||
<MDXRenderer>
|
||||
{mdx?.body ?? ""}
|
||||
</MDXRenderer>
|
||||
</Layout>
|
||||
)
|
||||
|
||||
export const query = graphql`
|
||||
query Page($id: String) {
|
||||
|
|
@ -3,7 +3,7 @@ import { graphql, Link as GatsbyLink, PageProps } from "gatsby"
|
|||
import { GatsbyImage, getImage } from "gatsby-plugin-image"
|
||||
import { MDXRenderer } from "gatsby-plugin-mdx"
|
||||
import NavigateNextIcon from "@mui/icons-material/NavigateNext"
|
||||
import Layout from "../../components/organisms/Layout"
|
||||
import Layout from "../components/organisms/Layout"
|
||||
|
||||
import { defineCustomElements as deckDeckGoHighlightElement } from "@deckdeckgo/highlight-code/dist/loader";
|
||||
import { Breadcrumbs, Link } from "@mui/material";
|
||||
|
|
@ -11,7 +11,7 @@ Germany
|
|||
|
||||
## Contact Information
|
||||
|
||||
Telephone: +491723956877
|
||||
Telephone: +49 172 3956877
|
||||
E-Mail: admin@felschr.com
|
||||
Website: [felschr.com](https://felschr.com)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue