Add base templates, theme, and dark mode

This commit is contained in:
thePR0M3TH3AN
2025-07-10 10:29:33 -04:00
parent b8e65e22dd
commit 7760eeefcc
8 changed files with 130 additions and 2 deletions

View File

@@ -88,7 +88,11 @@ async function generate({ contentDir = 'content', outputDir = '_site', configPat
const elev = new Eleventy(contentDir, outputDir);
elev.setConfig({
dir: { input: contentDir, output: outputDir },
dir: {
input: contentDir,
output: outputDir,
includes: path.relative(contentDir, 'templates')
},
templateFormats: ['md', 'njk'],
markdownTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
@@ -97,6 +101,8 @@ async function generate({ contentDir = 'content', outputDir = '_site', configPat
elev.configFunction = function(eleventyConfig) {
eleventyConfig.addGlobalData('navigation', nav);
eleventyConfig.addGlobalData('config', config);
eleventyConfig.addGlobalData('layout', 'layout.njk');
eleventyConfig.addPassthroughCopy({ 'assets': 'assets' });
};
await elev.write();