From 580dd0bbfda04ef65beda0eec9e0fdcd6f51f713 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 3 Nov 2022 02:38:56 +0100 Subject: Deal with avif adaptation --- src/build/index.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/build') diff --git a/src/build/index.mjs b/src/build/index.mjs index 89841f9..ce490cf 100644 --- a/src/build/index.mjs +++ b/src/build/index.mjs @@ -55,6 +55,14 @@ const loadMD = (listFile, suffix) => { logo.properties.src = `${suffix}/${logo.properties.src}`; logo.properties.height = '150'; logo.properties.width = '150'; + + const logoP = select('source', intro); + if (logoP !== null) { + console.log(logoP) + logoP.properties.srcSet= `${suffix}/${logoP.properties.srcSet}`; + console.log(logoP) + } + titleHtml.children[0].properties.href = `${suffix}/${file.slice(0, -3)}`; const title = hastToString(titleHtml); -- cgit v1.2.3-54-g00ecf