Update quartz/plugins/transformers/citations.ts

This commit is contained in:
Jacky Zhao 2026-01-08 09:22:28 +08:00 committed by GitHub
parent 4bd875dead
commit 9212032012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,9 +32,7 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
let lang: string = "en-US"
if (ctx.cfg.configuration.locale !== "en-US") {
lang =
"https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" +
ctx.cfg.configuration.locale +
".xml"
`https://raw.githubusercontent.com/citation-stylelanguage/locales/refs/heads/master/locales-${ctx.cfg.configuration.locale}.xml`
}
// Add rehype-citation to the list of plugins
plugins.push([