mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-20 14:52:13 +00:00
rss + sitemap
This commit is contained in:
parent
ba9f243728
commit
4c904d88ab
11 changed files with 131 additions and 491 deletions
quartz/plugins/emitters
|
@ -1,25 +0,0 @@
|
|||
import { QuartzEmitterPlugin } from "../types"
|
||||
|
||||
interface Options {
|
||||
domain: string
|
||||
}
|
||||
|
||||
export const CNAME: QuartzEmitterPlugin<Options> = (opts?: Options) => ({
|
||||
name: "CNAME",
|
||||
getQuartzComponents() {
|
||||
return []
|
||||
},
|
||||
async emit(_contentFolder, _cfg, _content, _resources, emit): Promise<string[]> {
|
||||
const slug = "CNAME"
|
||||
|
||||
if (opts?.domain) {
|
||||
await emit({
|
||||
content: opts?.domain,
|
||||
slug,
|
||||
ext: "",
|
||||
})
|
||||
}
|
||||
|
||||
return ["CNAME"]
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue