File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
.vitepress/theme/components Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { onMounted } from ' vue'
3
- import SiteMap from ' ./SiteMap.vue' ;
3
+ import SiteMap from ' ./SiteMap.vue'
4
4
// import NewsLetter from './NewsLetter.vue'
5
5
import { load , data , base } from ' ./sponsors'
6
6
import SponsorsGroup from ' ./SponsorsGroup.vue'
@@ -48,10 +48,19 @@ onMounted(async () => {
48
48
<template v-for =" { url , img , name , description } of data .special " >
49
49
<a :href =" url" target =" _blank" rel =" sponsored noopener" >
50
50
<picture v-if =" img.endsWith('png')" >
51
- <source type =" image/avif" :srcset =" `${base}/images/${img.replace(/\.png$/, '.avif')}`" />
51
+ <source
52
+ type =" image/avif"
53
+ :srcset =" `${base}/images/${img.replace(/\.png$/, '.avif')}`"
54
+ />
52
55
<img :src =" `${base}/images/${img}`" :alt =" name" />
53
56
</picture >
54
- <img v-else :src =" `${base}/images/${img}`" :alt =" name" />
57
+ <img
58
+ width =" 168"
59
+ height =" 42"
60
+ v-else
61
+ :src =" `${base}/images/${img}`"
62
+ :alt =" name"
63
+ />
55
64
</a >
56
65
<span >{{ description }}</span >
57
66
</template >
You can’t perform that action at this time.
0 commit comments