Update quartz/plugins/transformers/citations.ts

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

View File

@ -31,8 +31,7 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
// locale available and simply create the lang url-string // locale available and simply create the lang url-string
let lang: string = "en-US" let lang: string = "en-US"
if (ctx.cfg.configuration.locale !== "en-US") { if (ctx.cfg.configuration.locale !== "en-US") {
lang = lang = `https://raw.githubusercontent.com/citation-stylelanguage/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 // Add rehype-citation to the list of plugins
plugins.push([ plugins.push([