Browse Source

refactor: move things around

fix/enable-imgix
Thomas Osmonson 4 years ago
parent
commit
e744f6fdfc
  1. 2
      lib/md-loader.js
  2. 0
      lib/remark-paragraph-alerts.js
  3. 0
      lib/remark-shiki.js
  4. 4
      next.config.js

2
src/lib/md-loader.js → 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 }) => (
<DefaultLayout meta={meta} {...props}>{children}</DefaultLayout>

0
src/lib/remark-paragraph-alerts.js → lib/remark-paragraph-alerts.js

0
src/lib/remark-shiki.js → lib/remark-shiki.js

4
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'),
],
});

Loading…
Cancel
Save