We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ac5469 commit aaf1152Copy full SHA for aaf1152
packages/@vuepress/theme-default/src/client/components/Navbar.vue
@@ -4,12 +4,15 @@
4
5
<span ref="siteBrand">
6
<RouterLink :to="siteBrandLink">
7
- <img
8
- v-if="siteBrandLogo"
9
- class="logo"
10
- :src="withBase(siteBrandLogo)"
11
- :alt="siteBrandTitle"
12
- />
+ <!-- logo could be different in dark mode, so we make it client-only to avoid ssr-mismatch -->
+ <ClientOnly>
+ <img
+ v-if="siteBrandLogo"
+ class="logo"
+ :src="withBase(siteBrandLogo)"
13
+ :alt="siteBrandTitle"
14
+ />
15
+ </ClientOnly>
16
17
<span
18
v-if="siteBrandTitle"
0 commit comments