sitemap and 404 page

This commit is contained in:
2026-09-23 15:08:14 -07:00
parent 7586e10681
commit 210ad9a5fd
4 changed files with 14 additions and 2 deletions
+4
View File
@@ -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
+2 -1
View File
@@ -1,10 +1,11 @@
{
"name": "11ty",
"name": "spoonfairies",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "spoonfairies",
"version": "1.0.0",
"license": "AGPL-3.0-only",
"devDependencies": {
+8
View File
@@ -0,0 +1,8 @@
---
permalink: 404.html
eleventyExcludeFromCollections: true
---
# Content not found.
Sorry, can't find this page. Return [home](/).
-1
View File
@@ -4,7 +4,6 @@ layout: false
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{% for page in collections.all %}
{% if page.data.permalink != false %}