From a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d Mon Sep 17 00:00:00 2001 From: Elis Eriksson Date: Sun, 31 May 2026 20:13:47 +0200 Subject: add sitemap, robots.txt and favicon.ico along with other small changes --- eleventy.config.mjs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'eleventy.config.mjs') diff --git a/eleventy.config.mjs b/eleventy.config.mjs index 284406a..a1b5ece 100644 --- a/eleventy.config.mjs +++ b/eleventy.config.mjs @@ -7,6 +7,7 @@ import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; import fs from "fs" import { OgImage } from 'eleventy-plugin-og-image/og-image'; import path from "path"; +import sitemap from "@quasibit/eleventy-plugin-sitemap"; export class CustomOgImage extends OgImage { async shortcodeOutput() { @@ -14,8 +15,6 @@ export class CustomOgImage extends OgImage { } } - - export default function(eleventyConfig) { // Order matters, put this at the top of your configuration file. eleventyConfig.addFilter("embedSVG", function(filePath) { @@ -67,6 +66,12 @@ export default function(eleventyConfig) { OgImage: CustomOgImage, }); + eleventyConfig.addPlugin(sitemap, { + sitemap: { + hostname: "https://spelis.li", + }, + }); + eleventyConfig.addPlugin(eleventyImageTransformPlugin, { widths: [200, "auto"], htmlOptions: { @@ -111,6 +116,7 @@ export default function(eleventyConfig) { eleventyConfig .addPassthroughCopy({"./public/": "/"}) .addPassthroughCopy({"./assets/": "/assets"}) + .addPassthroughCopy({"./assets/images/favicon.ico": "/favicon.ico"}) }; export const config = { @@ -123,4 +129,4 @@ export const config = { templateFormats: ["md", "njk"], htmlTemplateEngine: "njk", markdownTemplateEngine: "njk" -}; \ No newline at end of file +}; -- cgit v1.3-7-ge9ab