Skip to content

Commit

Permalink
11ty v3
Browse files Browse the repository at this point in the history
  • Loading branch information
craigerskine committed Oct 3, 2024
1 parent 7281dff commit a14447c
Show file tree
Hide file tree
Showing 3 changed files with 1,830 additions and 1,681 deletions.
20 changes: 10 additions & 10 deletions .eleventy.js → eleventy.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { EleventyRenderPlugin } = require("@11ty/eleventy");
const EleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const EleventyRssPlugin = require("@11ty/eleventy-plugin-rss");
const esbuild = require("esbuild");
const markdownIt = require("markdown-it");
const markdownItAttrs = require("markdown-it-attrs");
const yaml = require("js-yaml");
import { EleventyRenderPlugin } from '@11ty/eleventy';
import EleventyNavigationPlugin from '@11ty/eleventy-navigation';
import EleventyRssPlugin from '@11ty/eleventy-plugin-rss';
import esbuild from 'esbuild';
import markdownIt from 'markdown-it';
import markdownItAttrs from 'markdown-it-attrs';
import yaml from 'js-yaml';

module.exports = function (eleventyConfig) {
export default function (eleventyConfig) {

eleventyConfig.setServerOptions({
domdiff: false,
Expand All @@ -21,7 +21,7 @@ module.exports = function (eleventyConfig) {
});

eleventyConfig.addWatchTarget('./_site/_app/_app.js');

eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPlugin(EleventyNavigationPlugin);
eleventyConfig.addPlugin(EleventyRssPlugin);
Expand Down Expand Up @@ -95,4 +95,4 @@ module.exports = function (eleventyConfig) {
},
pathPrefix: '/',
};
};
};
Loading

0 comments on commit a14447c

Please sign in to comment.