fix(theme): apply `externalLinkIcon` option on `VPHome` (#4492)

pull/4502/head
Leo 8 months ago committed by GitHub
parent 3cd3aee817
commit fe48943640
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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="{
'external-link-icon-enabled': theme.externalLinkIcon
}">
<slot name="home-hero-before" />
<VPHomeHero>
<template #home-hero-info-before><slot name="home-hero-info-before" /></template>

Loading…
Cancel
Save