diff options
Diffstat (limited to 'src/config.ts')
| -rw-r--r-- | src/config.ts | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/config.ts b/src/config.ts index 3a99491..838a689 100644 --- a/src/config.ts +++ b/src/config.ts @@ -27,15 +27,11 @@ export default function (config: any) { let url = metadata.png?.[0].url ?? ""; return `<picture> - ${Object.values(metadata).map(imageFormat => { - return ` <source type="${imageFormat[0].sourceType}" srcset="${imageFormat.map(entry => entry.srcset).join(", ")}" sizes="${sizes}">`; - }).join("\n")} - <img - src="${url}" - width="${width}" - height="${height ?? width}" - alt="${alt}"> - </picture>`; +${Object.values(metadata).map(imageFormat => { + return ` <source type="${imageFormat[0].sourceType}" srcset="${imageFormat.map(entry => entry.srcset).join(", ")}" sizes="${sizes}">`; +}).join("\n")} + <img src="${url}" width="${width}" height="${height ?? width}" alt="${alt}"> +</picture>`; }); // add `date` filter |
