Looks like you lost your way...
-Go back to the home page by clicking the button below.
-diff --git a/.eleventy.js b/.eleventy.js index f31703d3..dda2c9ad 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -13,6 +13,8 @@ const markdownItAnchor = require("markdown-it-anchor"); const markdownItHighlightJS = require('markdown-it-highlightjs') const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime"); const packageVersion = require("./package.json").version; +const htmlmin = require("html-minifier-terser"); +const CleanCSS = require("clean-css"); const mdOptions = { html: true, @@ -30,6 +32,30 @@ const mdAnchorOpts = { } module.exports = function (eleventyConfig) { + + eleventyConfig.addTransform("htmlmin", function(content, outputPath) { + if (outputPath && outputPath.endsWith(".html")) { + let minified = htmlmin.minify(content, { + useShortDoctype: true, + removeComments: true, + collapseWhitespace: true, + // You can add more options from the html-minifier-terser documentation + // For example, to minify CSS and JS within HTML: + // minifyCSS: true, + // minifyJS: true, + ignoreCustomComments: true, + collapseWhitespace: true, + collapseInlineTagWhitespace: true, + }); + return minified; + } + return content; // If not an HTML output, return content as-is + }); + + eleventyConfig.addFilter("cssmin", function (code) { + return new CleanCSS({}).minify(code).styles; + }); + if (process.env.ELEVENTY_ENV === "prod") { eleventyConfig.ignores.add("./src/posts/"); }; @@ -55,9 +81,13 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPlugin(emojiReadTime); - eleventyConfig.addWatchTarget("src/sass/*.scss"); + eleventyConfig.addWatchTarget("src/css/*.css"); - eleventyConfig.addPassthroughCopy("src/img"); + eleventyConfig.addPassthroughCopy("src/img/*.webp"); + eleventyConfig.addPassthroughCopy("src/img/**/*.webp"); + eleventyConfig.addPassthroughCopy("src/img/touch/**"); + eleventyConfig.addPassthroughCopy("src/img/*.svg"); + eleventyConfig.addPassthroughCopy("src/css/**"); eleventyConfig.addPassthroughCopy("src/webfonts"); eleventyConfig.addPassthroughCopy("src/cache-polyfill.js"); eleventyConfig.addPassthroughCopy("src/CNAME"); @@ -126,7 +156,7 @@ module.exports = function (eleventyConfig) { tags: ["h2", "h3", "h4"], wrapper: "div", wrapperClass: "toc markdown-toc", - ul: true, + ul: false, flat: true }); eleventyConfig.addPlugin( diff --git a/.vscode/settings.json b/.vscode/settings.json index 5c45f6e6..9fdb8521 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,6 +6,7 @@ ], "cSpell.words": [ "Alfredlogo", + "ASBX", "Brookfield", "Codepen", "cssnano", @@ -35,6 +36,7 @@ "RHDM", "Roadmapping", "Saylent", + "Scryfall", "Shortcode", "Shriners", "Spiceworks", @@ -47,6 +49,7 @@ "Timetrak", "Trak", "UXPA", + "Vite", "webfonts", "Westborough", "Westford", diff --git a/docs/404.html b/docs/404.html index bc458987..e10a21a0 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1,163 +1,7 @@ - -
- - - - - -Go back to the home page by clicking the button below.
-