Files
continuum-3d-site/eleventy.config.js
T
octoturge 171a6d3be8
build / build (push) Successful in 2m51s
Build landing page from Penpot design, with multi-language switcher
Implement the "Desktop dark" Penpot design: nav, hero, about, products
teaser and contact form, with the exported logo and wave artwork and
self-hosted Poppins, Roboto Flex and Chillax fonts.

- Shared page markup in _includes/home.pug; copy in locales/{en,pl}.json
- Footer language switcher and hreflang tags generated from the locales
- Contact form composes a mailto: to the address in _data/site.json
- Stacked layout below 1024px
2026-10-29 14:26:26 +00:00

26 lines
617 B
JavaScript

import pug from "pug";
export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("src/assets/img");
eleventyConfig.addPassthroughCopy("src/assets/fonts");
eleventyConfig.addExtension("pug", {
compile: (inputContent, inputPath) => {
const fn = pug.compile(inputContent, { filename: inputPath });
return (data) => fn(data);
},
});
return {
dir: {
input: "src",
output: "dist",
includes: "_includes",
data: "_data",
},
templateFormats: ["pug", "md", "html"],
htmlTemplateEngine: "pug",
markdownTemplateEngine: "pug",
};
}