2024-05-06 10:43:37 +00:00
|
|
|
// Installed Plugins
|
2024-07-18 18:08:10 +00:00
|
|
|
import pluginRss from "@11ty/eleventy-plugin-rss";
|
2024-07-28 11:07:50 +00:00
|
|
|
import pluginEleventyNavigation from "@11ty/eleventy-navigation";
|
|
|
|
import pluginEmbedEverything from "eleventy-plugin-embed-everything";
|
2024-07-28 11:08:51 +00:00
|
|
|
import pluginMetagen from "eleventy-plugin-metagen";
|
2024-07-28 11:07:50 +00:00
|
|
|
import pluginEmojiReadTime from "@11tyrocks/eleventy-plugin-emoji-readtime";
|
2024-07-28 11:08:51 +00:00
|
|
|
import pluginTOC from "@uncenter/eleventy-plugin-toc";
|
2024-04-12 17:54:48 +00:00
|
|
|
|
2024-07-28 11:05:49 +00:00
|
|
|
// Custom Configurations
|
|
|
|
import markdownItConfig from "./src/_config/markdown-it.js";
|
2024-07-28 11:48:35 +00:00
|
|
|
import filesConfig from "./src/_config/files.js";
|
2024-07-28 11:05:49 +00:00
|
|
|
import collectionsConfig from "./src/_config/collections.js";
|
|
|
|
import filterConfig from "./src/_config/filter.js";
|
|
|
|
import shortCodesConfig from "./src/_config/shortcodes.js";
|
2024-07-18 18:08:10 +00:00
|
|
|
|
2024-07-28 09:30:43 +00:00
|
|
|
export default function(eleventyConfig) {
|
2024-05-06 17:01:15 +00:00
|
|
|
// Installed Plugins
|
2024-04-11 12:18:03 +00:00
|
|
|
eleventyConfig.addPlugin(pluginRss);
|
2024-07-28 11:07:50 +00:00
|
|
|
eleventyConfig.addPlugin(pluginEleventyNavigation);
|
|
|
|
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
|
|
|
eleventyConfig.addPlugin(pluginMetagen);
|
|
|
|
eleventyConfig.addPlugin(pluginEmojiReadTime);
|
2024-07-28 11:05:49 +00:00
|
|
|
eleventyConfig.addPlugin(pluginTOC, {
|
|
|
|
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
|
|
|
wrapper: function (toc) {
|
|
|
|
return `<nav class="toc" aria-labelledby="toc-heading">${toc}</nav>`;
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
// Custom Configurations
|
|
|
|
eleventyConfig.addPlugin(markdownItConfig);
|
2024-07-28 11:48:35 +00:00
|
|
|
eleventyConfig.addPlugin(filesConfig);
|
2024-07-28 11:05:49 +00:00
|
|
|
eleventyConfig.addPlugin(collectionsConfig);
|
|
|
|
eleventyConfig.addPlugin(filterConfig);
|
|
|
|
eleventyConfig.addPlugin(shortCodesConfig);
|
2024-07-18 14:11:18 +00:00
|
|
|
|
|
|
|
// Eleventy bundle plugin
|
2024-07-18 13:08:32 +00:00
|
|
|
eleventyConfig.addBundle("css");
|
2024-07-19 00:35:56 +00:00
|
|
|
eleventyConfig.addBundle("js", { toFileDirectory: "assets/js" });
|
2024-04-12 17:54:48 +00:00
|
|
|
|
2024-04-06 04:15:14 +00:00
|
|
|
return {
|
|
|
|
dir: {
|
|
|
|
input: "src"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|