File tree 3 files changed +7
-0
lines changed
src/client/theme-default/components
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,9 @@ Full list of slots available in the default theme layout:
195
195
- ` aside-ads-after `
196
196
- When ` layout: 'home' ` is enabled via frontmatter:
197
197
- ` home-hero-before `
198
+ - ` home-hero-info-before `
198
199
- ` home-hero-info `
200
+ - ` home-hero-actions-after `
199
201
- ` home-hero-image `
200
202
- ` home-hero-after `
201
203
- ` home-features-before `
Original file line number Diff line number Diff line change @@ -194,7 +194,9 @@ export default {
194
194
- ` aside-ads-after `
195
195
- 当 ` layout: 'home' ` 在 frontmatter 中被启用时:
196
196
- ` home-hero-before `
197
+ - ` home-hero-info-before `
197
198
- ` home-hero-info `
199
+ - ` home-hero-actions-after `
198
200
- ` home-hero-image `
199
201
- ` home-hero-after `
200
202
- ` home-features-before `
Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
25
25
<div class =" VPHero" :class =" { 'has-image': image || heroImageSlotExists }" >
26
26
<div class =" container" >
27
27
<div class =" main" >
28
+ <slot name =" home-hero-info-before" />
28
29
<slot name =" home-hero-info" >
29
30
<h1 v-if =" name" class =" name" >
30
31
<span v-html =" name" class =" clip" ></span >
31
32
</h1 >
32
33
<p v-if =" text" v-html =" text" class =" text" ></p >
33
34
<p v-if =" tagline" v-html =" tagline" class =" tagline" ></p >
34
35
</slot >
36
+ <slot name =" home-hero-info-after" />
35
37
36
38
<div v-if =" actions" class =" actions" >
37
39
<div v-for =" action in actions" :key =" action.link" class =" action" >
@@ -44,6 +46,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
44
46
/>
45
47
</div >
46
48
</div >
49
+ <slot name =" home-hero-actions-after" />
47
50
</div >
48
51
49
52
<div v-if =" image || heroImageSlotExists" class =" image" >
You can’t perform that action at this time.
0 commit comments