build / build (push) Successful in 2m51s
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
26 lines
617 B
JavaScript
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",
|
|
};
|
|
}
|