From 303af97c618586e73b74427498e15e6a8acacb7a Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Wed, 23 Sep 2026 14:50:45 -0700 Subject: [PATCH] sitemap --- eleventy.config.js | 4 ++++ src/sitemap.xml.njk | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index 70118b9..1014cf6 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,3 +1,4 @@ +import { HtmlBasePlugin } from "@11ty/eleventy"; import { eleventyImageTransformPlugin } from "@11ty/eleventy-img"; import { attrs } from "@mdit/plugin-attrs"; @@ -47,6 +48,9 @@ export default async function (eleventyConfig) { .addPassthroughCopy("favicon.ico") .addPassthroughCopy("robots.txt"); + /* HTML base */ + eleventyConfig.addPlugin(HtmlBasePlugin); + /* Images */ eleventyConfig.addPlugin(eleventyImageTransformPlugin, { // output image formats diff --git a/src/sitemap.xml.njk b/src/sitemap.xml.njk index 611f2d9..a066152 100644 --- a/src/sitemap.xml.njk +++ b/src/sitemap.xml.njk @@ -4,7 +4,6 @@ layout: false eleventyExcludeFromCollections: true --- - {% for page in collections.all %} {% if page.data.permalink != false %}