diff options
| author | Elis Eriksson <spelis.tech@gmail.com> | 2026-05-31 20:13:47 +0200 |
|---|---|---|
| committer | Elis Eriksson <spelis.tech@gmail.com> | 2026-05-31 20:13:47 +0200 |
| commit | a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d (patch) | |
| tree | 39faa4291bb40bd26087cd71bef06565cbf54103 /eleventy.config.mjs | |
| parent | fbfc82d638a55cf861e2deb248bcd689d58e7457 (diff) | |
| download | spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.tar spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.tar.gz spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.tar.bz2 spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.tar.lz spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.tar.xz spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.tar.zst spelis-web-a96ac65ca8e8b5e889a4018a90dfa6d64b34c69d.zip | |
add sitemap, robots.txt and favicon.ico along with other small changes
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 +}; |
