mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
rename to mdComponents
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { readFileSync } from 'fs'
|
||||
import renderToString from 'next-mdx-remote/render-to-string'
|
||||
import mdFormatter from '../helpers/mdFormatter'
|
||||
import mdComponents from '../components/mdComponents'
|
||||
|
||||
import Layout from '../components/layout'
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function TermsPage({ renderedOutput }) {
|
||||
export async function getStaticProps() {
|
||||
const source = readFileSync('./md/impressum.md', 'utf8')
|
||||
const { renderedOutput } = await renderToString(source, {
|
||||
components: { ...mdFormatter },
|
||||
components: { ...mdComponents },
|
||||
})
|
||||
return { props: { renderedOutput } }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { readFileSync } from 'fs'
|
||||
import renderToString from 'next-mdx-remote/render-to-string'
|
||||
import mdFormatter from '../helpers/mdFormatter'
|
||||
import mdComponents from '../components/mdComponents'
|
||||
|
||||
import Layout from '../components/layout'
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function TermsPage({ renderedOutput }) {
|
||||
export async function getStaticProps() {
|
||||
const source = readFileSync('./md/privacy.md', 'utf8')
|
||||
const { renderedOutput } = await renderToString(source, {
|
||||
components: { ...mdFormatter },
|
||||
components: { ...mdComponents },
|
||||
})
|
||||
return { props: { renderedOutput } }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { readFileSync } from 'fs'
|
||||
import renderToString from 'next-mdx-remote/render-to-string'
|
||||
import mdFormatter from '../helpers/mdFormatter'
|
||||
import mdComponents from '../components/mdComponents'
|
||||
|
||||
import Layout from '../components/layout'
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function TermsPage({ renderedOutput }) {
|
||||
export async function getStaticProps() {
|
||||
const source = readFileSync('./md/terms.md', 'utf8')
|
||||
const { renderedOutput } = await renderToString(source, {
|
||||
components: { ...mdFormatter },
|
||||
components: { ...mdComponents },
|
||||
})
|
||||
return { props: { renderedOutput } }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user