removed config from gitignore

:)
This commit is contained in:
Arian Furrer 2024-02-11 12:11:13 +01:00
parent fbb6f3a77f
commit abfce118b2
2 changed files with 37 additions and 2 deletions

36
.eleventy.js Normal file
View File

@ -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
};
};

3
.gitignore vendored
View File

@ -2,5 +2,4 @@ node_modules
package.json
package-lock.json
.htaccess
_site
.eleventy.js
_site