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

pull/4492/head
yuyinws 8 months ago
parent 3cd3aee817
commit 88def195d9
No known key found for this signature in database
GPG Key ID: 066DDFA8B76EA147

@ -4,11 +4,15 @@ import VPHomeFeatures from './VPHomeFeatures.vue'
import VPHomeContent from './VPHomeContent.vue' import VPHomeContent from './VPHomeContent.vue'
import { useData } from '../composables/data' import { useData } from '../composables/data'
const { frontmatter } = useData() const { frontmatter, theme } = useData()
</script> </script>
<template> <template>
<div class="VPHome"> <div
class="VPHome"
:class="[
theme.externalLinkIcon && 'external-link-icon-enabled'
]">
<slot name="home-hero-before" /> <slot name="home-hero-before" />
<VPHomeHero> <VPHomeHero>
<template #home-hero-info-before><slot name="home-hero-info-before" /></template> <template #home-hero-info-before><slot name="home-hero-info-before" /></template>

Loading…
Cancel
Save