mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-20 03:14:06 -06:00
921 B
921 B
| title | tags | permalink | alias | |||
|---|---|---|---|---|---|---|
| AliasRedirects |
|
permalink |
|
This plugin emits HTML redirect pages for aliases and permalinks defined in the frontmatter of content files.
For example, A foo.md has the following frontmatter
---
title: "Foo"
permalink: "bar"
alias:
- "baz"
---
The target host.me/bar and host.me/baz will be redirected to host.me/foo
Note that these are permanent redirects.
The emitter supports the following aliases:
aliasesalias
Note
For information on how to add, remove or configure plugins, see the configuration#Plugins page.
This plugin has no configuration options.
API
- Category: Emitter
- Function name:
Plugin.AliasRedirects(). - Source:
quartz/plugins/emitters/aliases.ts.