Skip to content

Commit

Permalink
clean up config, combine imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rdela committed Aug 1, 2024
1 parent 75bd941 commit 213c75a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { DateTime } from "luxon";
import { IdAttributePlugin } from "@11ty/eleventy";
import { EleventyHtmlBasePlugin, IdAttributePlugin } from "@11ty/eleventy";
import pluginRss from "@11ty/eleventy-plugin-rss";
import pluginSyntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
import pluginBundle from "@11ty/eleventy-plugin-bundle";
import pluginNavigation from "@11ty/eleventy-navigation";
import { EleventyHtmlBasePlugin } from "@11ty/eleventy";

import pluginDrafts from "./eleventy.config.drafts.js";
import pluginImages from "./eleventy.config.images.js";
Expand All @@ -30,14 +29,14 @@ export default async function(eleventyConfig) {
eleventyConfig.addPlugin(pluginImages);

// Official plugins
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPlugin(IdAttributePlugin);
eleventyConfig.addPlugin(pluginBundle);
eleventyConfig.addPlugin(pluginNavigation);
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginSyntaxHighlight, {
preAttributes: { tabindex: 0 },
});
eleventyConfig.addPlugin(pluginNavigation);
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPlugin(pluginBundle);

// Filters
eleventyConfig.addFilter("readableDate", (dateObj, format, zone) => {
Expand Down

0 comments on commit 213c75a

Please sign in to comment.