This commit is contained in:
tree 2023-04-27 05:05:50 +02:00
rodič 0851e5766f
revize 220ff2f762
1 změnil soubory, kde provedl 2 přidání a 2 odebrání

Zobrazit soubor

@ -382,7 +382,7 @@ class DeConf_Collection {
const outDir = [outputDir, this.id].join("/")
await emptyDir(outDir)
await writeImageBundle(x[asset], outDir)
const fnOut = [this.id, x[asset].replace(/\.(.+)$/, '.webp')].join("/");
const fnOut = [this.id, x[asset].replace(/\.[^.]+$/, '.webp')].join("/");
const url = [publicUrl, fnOut].join("/");
this.data.index[asset] = url;
}
@ -401,7 +401,7 @@ class DeConf_Collection {
this.id,
"photos",
"speakers",
posix.basename(sp.photo),
posix.basename(sp.photo).replace(/\.[^.]+$/, '.webp'),
].join("/");
}
}