diff --git a/.docs/.eleventy.js b/.docs/.eleventy.js index ae743a6..f481d9b 100644 --- a/.docs/.eleventy.js +++ b/.docs/.eleventy.js @@ -54,15 +54,15 @@ async function shortcode_image_urlpass(src) { return `/img/${filename}`; } -async function shortcode_gallerybox(content, src, idthis, idprev, idnext) { - return `
+async function shortcode_gallerybox(content, src, id_this, id_prev, id_next) { + return `
${await shortcode_image(src, "", "", "1920w")}
${content}
- - + +
`; } @@ -81,7 +81,7 @@ function fetch_file(url) { return file_fetcher.fetch_file(url); } -function do_minifycss(source, output_path) { +function do_minify_css(source, output_path) { if(!output_path.endsWith(".css") || !is_production) return source; const result = new CleanCSS({ @@ -91,7 +91,7 @@ function do_minifycss(source, output_path) { return result; } -async function do_minifyhtml(source, output_path) { +async function do_minify_html(source, output_path) { if(!output_path.endsWith(".html") || !is_production) return source; const result = await minify_html(source, { @@ -121,8 +121,8 @@ async function do_minifyhtml(source, output_path) { if(is_production) console.log("Production environment detected, minifying content"); module.exports = function(eleventyConfig) { - eleventyConfig.addTransform("cssmin", do_minifycss); - eleventyConfig.addTransform("htmlmin", do_minifyhtml); + eleventyConfig.addTransform("cssmin", do_minify_css); + eleventyConfig.addTransform("htmlmin", do_minify_html); eleventyConfig.addPassthroughCopy("img2brush/img2brush.js"); eleventyConfig.addAsyncShortcode("fetch", fetch);