mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-02-03 22:15:42 -06:00
Update quartz/plugins/transformers/citations.ts
This commit is contained in:
parent
4bd875dead
commit
9212032012
@ -32,9 +32,7 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
|
|||||||
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-style-language/locales/refs/heads/master/locales-" +
|
`https://raw.githubusercontent.com/citation-stylelanguage/locales/refs/heads/master/locales-${ctx.cfg.configuration.locale}.xml`
|
||||||
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([
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user