From 789544445fb31740e99a2fe89f2e23d0b8e8e348 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Tue, 15 Oct 2024 04:19:43 +0200 Subject: [PATCH] feat: :wrench: set up robots.txt generator plugin --- eleventy.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index 8f9a307..f074d0b 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -38,7 +38,11 @@ export default async function (eleventyConfig) { eleventyConfig.addPlugin(eleventyPluginMetagen); eleventyConfig.addPlugin(eleventyPluginNavigation); eleventyConfig.addPlugin(eleventyPluginReadingTime); - eleventyConfig.addPlugin(eleventyPluginRobotsTxt, {}); + eleventyConfig.addPlugin(eleventyPluginRobotsTxt, { + sitemapURL: 'https://blog.sebin-nyshkim.net/sitemap.xml', + shouldBlockAIRobots: true, + rules: new Map([['*', [{ allow: '/posts' }]]]), + }); eleventyConfig.addPlugin(eleventyPluginSyntaxHighlight); eleventyConfig.addPlugin(eleventyPluginOgImage, { shortcodeOutput: async (ogImage) => {