We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ecee1 commit 99e3aacCopy full SHA for 99e3aac
.vitepress/theme/components/SponsorsGroup.vue
@@ -62,7 +62,14 @@ onMounted(async () => {
62
target="_blank"
63
rel="sponsored noopener"
64
>
65
- <img :src="`${base}/images/${img}`" :alt="name" />
+ <picture v-if="img.endsWith('png')">
66
+ <source
67
+ type="image/avif"
68
+ :srcset="`${base}/images/${img.replace(/\.png$/, '.avif')}`"
69
+ />
70
+ <img :src="`${base}/images/${img}`" :alt="name" />
71
+ </picture>
72
+ <img v-else :src="`${base}/images/${img}`" :alt="name" />
73
</a>
74
</template>
75
<a
0 commit comments