From 22c82225f82357214cba6a85b7c8a7d6db846c4b Mon Sep 17 00:00:00 2001 From: Mischa van den Burg Date: Sat, 1 Mar 2025 23:13:42 +0100 Subject: [PATCH] test: redirect plugin --- quartz.config.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/quartz.config.ts b/quartz.config.ts index fa29ab547..6132c5618 100644 --- a/quartz.config.ts +++ b/quartz.config.ts @@ -1,5 +1,6 @@ import { QuartzConfig } from "./quartz/cfg" import * as Plugin from "./quartz/plugins" +import { Redirects } from "./quartz/plugins/redirects" /** * Quartz 4.0 Configuration @@ -68,14 +69,15 @@ const config: QuartzConfig = { Plugin.GitHubFlavoredMarkdown(), Plugin.TableOfContents(), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), - Plugin.Redirects({ - redirects: { - "/testredirect": "https://google.com", - // "/another-page": "https://another-example.com" - // Add more redirects as needed - } - }) - ], Plugin.Description(), + Plugin.Description(), + Redirects({ + redirects: { + "/old-page": "https://example.com", + "/another-page": "https://another-example.com" + // Add more redirects as needed + } + }), + ], filters: [Plugin.RemoveDrafts()], emitters: [