@berlysia/vertical-writing-slide-system 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -354,9 +354,9 @@ export default async function slidesPlugin(
|
|
|
354
354
|
if (ogpImageFile) {
|
|
355
355
|
const ogpPath = `slide-assets/${ogpImageFile}`;
|
|
356
356
|
if (base.startsWith("http://") || base.startsWith("https://")) {
|
|
357
|
-
// フルURLの場合: base
|
|
357
|
+
// フルURLの場合: baseの末尾スラッシュを正規化し、collection名を含めて結合
|
|
358
358
|
const normalizedBase = base.endsWith("/") ? base : `${base}/`;
|
|
359
|
-
slideMetadata.ogImage = `${normalizedBase}${ogpPath}`;
|
|
359
|
+
slideMetadata.ogImage = `${normalizedBase}${config.collection}/${ogpPath}`;
|
|
360
360
|
} else {
|
|
361
361
|
// 相対パスの場合: そのまま相対パスを設定
|
|
362
362
|
slideMetadata.ogImage = `${base}${ogpPath}`;
|