Skip to content

Commit

Permalink
fix(theme): apply externalLinkIcon option on VPHome
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Jan 14, 2025
1 parent 3cd3aee commit 88def19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/client/theme-default/components/VPHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import VPHomeFeatures from './VPHomeFeatures.vue'
import VPHomeContent from './VPHomeContent.vue'
import { useData } from '../composables/data'
const { frontmatter } = useData()
const { frontmatter, theme } = useData()
</script>

<template>
<div class="VPHome">
<div
class="VPHome"
:class="[
theme.externalLinkIcon && 'external-link-icon-enabled'
]">
<slot name="home-hero-before" />
<VPHomeHero>
<template #home-hero-info-before><slot name="home-hero-info-before" /></template>
Expand Down

0 comments on commit 88def19

Please sign in to comment.