fix: .eleventy.js formatting
This commit is contained in:
parent
006999c671
commit
ab187f6161
36
.eleventy.js
36
.eleventy.js
|
@ -1,27 +1,27 @@
|
||||||
const pluginNavigation = require("@11ty/eleventy-navigation")
|
const pluginNavigation = require("@11ty/eleventy-navigation")
|
||||||
|
|
||||||
module.exports = function(eleventyConfig) {
|
module.exports = function (eleventyConfig) {
|
||||||
|
|
||||||
eleventyConfig.addPlugin(pluginNavigation);
|
eleventyConfig.addPlugin(pluginNavigation);
|
||||||
|
|
||||||
eleventyConfig.addPassthroughCopy('pages/css');
|
eleventyConfig.addPassthroughCopy('pages/css');
|
||||||
eleventyConfig.addPassthroughCopy('pages/content');
|
eleventyConfig.addPassthroughCopy('pages/content');
|
||||||
|
|
||||||
eleventyConfig.addPassthroughCopy({
|
eleventyConfig.addPassthroughCopy({
|
||||||
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js",
|
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js",
|
||||||
"pages/favicon.ico": "favicon.ico"
|
"pages/favicon.ico": "favicon.ico"
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addShortcode("year", () => {
|
eleventyConfig.addShortcode("year", () => {
|
||||||
let year = new Date().getFullYear();
|
let year = new Date().getFullYear();
|
||||||
return year.toString();
|
return year.toString();
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
input: "pages"
|
input: "pages"
|
||||||
},
|
},
|
||||||
pathPrefix: '/~fainsil/'
|
pathPrefix: '/~fainsil/'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in a new issue