mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
test: redirect plugin
This commit is contained in:
parent
381eafff02
commit
22c82225f8
@ -1,5 +1,6 @@
|
|||||||
import { QuartzConfig } from "./quartz/cfg"
|
import { QuartzConfig } from "./quartz/cfg"
|
||||||
import * as Plugin from "./quartz/plugins"
|
import * as Plugin from "./quartz/plugins"
|
||||||
|
import { Redirects } from "./quartz/plugins/redirects"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Quartz 4.0 Configuration
|
* Quartz 4.0 Configuration
|
||||||
@ -68,14 +69,15 @@ const config: QuartzConfig = {
|
|||||||
Plugin.GitHubFlavoredMarkdown(),
|
Plugin.GitHubFlavoredMarkdown(),
|
||||||
Plugin.TableOfContents(),
|
Plugin.TableOfContents(),
|
||||||
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
|
||||||
Plugin.Redirects({
|
Plugin.Description(),
|
||||||
redirects: {
|
Redirects({
|
||||||
"/testredirect": "https://google.com",
|
redirects: {
|
||||||
// "/another-page": "https://another-example.com"
|
"/old-page": "https://example.com",
|
||||||
// Add more redirects as needed
|
"/another-page": "https://another-example.com"
|
||||||
}
|
// Add more redirects as needed
|
||||||
})
|
}
|
||||||
], Plugin.Description(),
|
}),
|
||||||
|
|
||||||
],
|
],
|
||||||
filters: [Plugin.RemoveDrafts()],
|
filters: [Plugin.RemoveDrafts()],
|
||||||
emitters: [
|
emitters: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user