- Agregar JSON-LD (Organization, WebSite, SoftwareApplication y FAQPage) - Crear robots.txt y sitemap.xml con sitio de producción - Completar meta tags: robots, theme-color, og:image:type y twitter:url - Envolver preguntas del FAQ en h3 - Registrar filtro json para Nunjucks en Eleventy
27 lines
804 B
JavaScript
27 lines
804 B
JavaScript
export default function (eleventyConfig) {
|
|
// Permite que el servidor de desarrollo acepte conexiones desde otros
|
|
// dispositivos de la red local (por ejemplo: http://192.168.x.x:8081).
|
|
eleventyConfig.setServerOptions({
|
|
host: "0.0.0.0",
|
|
});
|
|
|
|
// Copia los assets estáticos (logotipo, isotipo, favicon) a dist/assets.
|
|
eleventyConfig.addPassthroughCopy("src/assets");
|
|
|
|
eleventyConfig.addFilter("formatPrice", (value, currency) => {
|
|
const locale = currency === "ars" ? "es-AR" : "en-US";
|
|
return new Intl.NumberFormat(locale).format(value);
|
|
});
|
|
|
|
eleventyConfig.addFilter("json", (value) => JSON.stringify(value));
|
|
|
|
return {
|
|
dir: {
|
|
input: "src",
|
|
output: "dist",
|
|
includes: "_includes",
|
|
layouts: "_includes/layouts",
|
|
data: "_data",
|
|
},
|
|
};
|
|
} |