diff options
Diffstat (limited to 'eleventy.config.mjs')
| -rw-r--r-- | eleventy.config.mjs | 12 |
1 files changed, 9 insertions, 3 deletions
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 +}; |
