diff --git a/src/lib/md-loader.js b/lib/md-loader.js similarity index 95% rename from src/lib/md-loader.js rename to lib/md-loader.js index 4e9aba25..49bd3561 100644 --- a/src/lib/md-loader.js +++ b/lib/md-loader.js @@ -33,7 +33,7 @@ module.exports = async function (src) { const { content, data } = fm(src); const headings = getHeadings(content); const code = - `import { Layout as DefaultLayout } from '@components/Layouts/default-layout'; + `import { Layout as DefaultLayout } from '@components/layouts/default-layout'; export const meta = ${JSON.stringify({ ...data, headings })}; const Layout = ({ children, ...props }) => ( {children} diff --git a/src/lib/remark-paragraph-alerts.js b/lib/remark-paragraph-alerts.js similarity index 100% rename from src/lib/remark-paragraph-alerts.js rename to lib/remark-paragraph-alerts.js diff --git a/src/lib/remark-shiki.js b/lib/remark-shiki.js similarity index 100% rename from src/lib/remark-shiki.js rename to lib/remark-shiki.js diff --git a/next.config.js b/next.config.js index 47d7e27f..7fc693e2 100755 --- a/next.config.js +++ b/next.config.js @@ -10,7 +10,7 @@ const remarkPlugins = [ { resolveFrom: path.join(__dirname, 'src/common/_includes') }, ], require('remark-squeeze-paragraphs'), - require('./src/lib/remark-paragraph-alerts'), + require('./lib/remark-paragraph-alerts'), require('remark-external-links'), require('remark-emoji'), require('remark-images'), @@ -37,7 +37,7 @@ module.exports = withBundleAnalyzer({ remarkPlugins, }, }, - path.join(__dirname, './src/lib/md-loader'), + path.join(__dirname, './lib/md-loader'), ], });