Skip to content

Commit

Permalink
feat(theme): don't escape siteTitle (#4308)
Browse files Browse the repository at this point in the history
  • Loading branch information
typed-sigterm authored Oct 25, 2024
1 parent d870ba4 commit bd690d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/components/VPNavBarTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const target = computed(() =>
>
<slot name="nav-bar-title-before" />
<VPImage v-if="theme.logo" class="logo" :image="theme.logo" />
<template v-if="theme.siteTitle"><span>{{ theme.siteTitle }}</span></template>
<template v-else-if="theme.siteTitle === undefined"><span>{{ site.title }}</span></template>
<span v-if="theme.siteTitle" v-html="theme.siteTitle"></span>
<span v-else-if="theme.siteTitle === undefined">{{ site.title }}</span>
<slot name="nav-bar-title-after" />
</a>
</div>
Expand Down

0 comments on commit bd690d6

Please sign in to comment.