From abfce118b24bd53b3dca03bc80fedcaf25396163 Mon Sep 17 00:00:00 2001 From: arian Date: Sun, 11 Feb 2024 12:11:13 +0100 Subject: [PATCH] removed config from gitignore :) --- .eleventy.js | 36 ++++++++++++++++++++++++++++++++++++ .gitignore | 3 +-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .eleventy.js diff --git a/.eleventy.js b/.eleventy.js new file mode 100644 index 0000000..f539800 --- /dev/null +++ b/.eleventy.js @@ -0,0 +1,36 @@ +// Add Syntax Highlighting plugin +const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); +// Add Inclusive Language plugin +const inclusiveLangPlugin = require("@11ty/eleventy-plugin-inclusive-language"); +// Add Naviagation plugin +const eleventyNavigationPlugin = require("@11ty/eleventy-navigation"); +// Add read time +const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime"); + +module.exports = function(eleventyConfig) { + eleventyConfig.addPlugin(syntaxHighlight); // syntax highlighting + eleventyConfig.addPlugin(inclusiveLangPlugin); // inclusive language + eleventyConfig.addPlugin(eleventyNavigationPlugin); // navigation + eleventyConfig.addPlugin(emojiReadTime, { + emoji: "💠" + }); // read emojiReadTime + + // add stylesheet + eleventyConfig.addPassthroughCopy("_src/style.css"); + // add _media folder + eleventyConfig.addPassthroughCopy("_src/_media"); + + // shortcodes + eleventyConfig.addShortcode("year", () => { + `${new Date().getFullYear()}` + }); + + // other settings + return { + dir: { + input: "_src" + }, + passthroughFileCopy: true + }; +}; + diff --git a/.gitignore b/.gitignore index f8ea838..2de10dc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ node_modules package.json package-lock.json .htaccess -_site -.eleventy.js +_site \ No newline at end of file