File tree 1 file changed +18
-20
lines changed
.vitepress/theme/components
1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -42,28 +42,26 @@ onMounted(async () => {
42
42
</p >
43
43
</section >
44
44
45
- <section id =" special-sponsor" >
45
+ <section v-if = " data && data.special " id =" special-sponsor" >
46
46
<span class =" lead" >Special Sponsor</span >
47
- <template v-if =" data && data .special " >
48
- <template v-for =" { url , img , name , description } of data .special " >
49
- <a :href =" url" target =" _blank" rel =" sponsored noopener" >
50
- <picture v-if =" img.endsWith('png')" >
51
- <source
52
- type =" image/avif"
53
- :srcset =" `${base}/images/${img.replace(/\.png$/, '.avif')}`"
54
- />
55
- <img :src =" `${base}/images/${img}`" :alt =" name" />
56
- </picture >
57
- <img
58
- width =" 168"
59
- height =" 42"
60
- v-else
61
- :src =" `${base}/images/${img}`"
62
- :alt =" name"
47
+ <template v-for =" { url , img , name , description } of data .special " >
48
+ <a :href =" url" target =" _blank" rel =" sponsored noopener" >
49
+ <picture v-if =" img.endsWith('png')" >
50
+ <source
51
+ type =" image/avif"
52
+ :srcset =" `${base}/images/${img.replace(/\.png$/, '.avif')}`"
63
53
/>
64
- </a >
65
- <span >{{ description }}</span >
66
- </template >
54
+ <img :src =" `${base}/images/${img}`" :alt =" name" />
55
+ </picture >
56
+ <img
57
+ width =" 168"
58
+ height =" 42"
59
+ v-else
60
+ :src =" `${base}/images/${img}`"
61
+ :alt =" name"
62
+ />
63
+ </a >
64
+ <span >{{ description }}</span >
67
65
</template >
68
66
</section >
69
67
You can’t perform that action at this time.
0 commit comments