switch img src according to the theme

This commit is contained in:
Lyric
2024-02-21 17:02:43 -08:00
parent f489b7b9b6
commit bcc5e97fd9
6 changed files with 150 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<script setup>
import DefaultTheme from 'vitepress/theme'
import SpeakWordInlineConverter from '../components/SpeakWordInlineConverter.vue'
import ThemedImageSwitch from '../components/ThemedImageSwitch.vue'
const { Layout } = DefaultTheme
@@ -11,6 +12,7 @@ const { Layout } = DefaultTheme
<template #doc-after>
<ClientOnly>
<SpeakWordInlineConverter />
<ThemedImageSwitch />
</ClientOnly>
</template>
</Layout>