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
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -2,5 +2,4 @@ node_modules
|
|||
package.json
|
||||
package-lock.json
|
||||
.htaccess
|
||||
_site
|
||||
.eleventy.js
|
||||
_site
|
||||
Loading…
Reference in New Issue