diff options
author | ache <ache@ache.one> | 2022-11-03 02:38:56 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2022-11-03 02:38:56 +0100 |
commit | 580dd0bbfda04ef65beda0eec9e0fdcd6f51f713 (patch) | |
tree | 9a4c44854db31268920fc7cd1a7e61213d1518a6 /src/build/index.mjs | |
parent | Put the png version of aoc logo (diff) |
Deal with avif adaptation
Diffstat (limited to 'src/build/index.mjs')
-rw-r--r-- | src/build/index.mjs | 8 |
1 files changed, 8 insertions, 0 deletions
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); |