parent
fbb6f3a77f
commit
abfce118b2
|
|
@ -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,4 +3,3 @@ package.json
|
||||||
package-lock.json
|
package-lock.json
|
||||||
.htaccess
|
.htaccess
|
||||||
_site
|
_site
|
||||||
.eleventy.js
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue