@eox/pages-theme-esa 0.8.3 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Layout.vue +25 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/pages-theme-esa",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with ESA branding",
6
6
  "main": "src/index.js",
package/src/Layout.vue CHANGED
@@ -132,29 +132,31 @@ onMounted(async () => {
132
132
  </ClientOnly>
133
133
  </template>
134
134
  <template #home-hero-before>
135
- <ClientOnly>
136
- <esa-cover
137
- :overline="frontmatter.title"
138
- :title="frontmatter.hero.text"
139
- :background-image="frontmatter.hero.background"
140
- :underline="frontmatter.hero.tagline"
141
- :cta="frontmatter.hero.actions?.[0]"
142
- :cta-link="
143
- frontmatter.hero.actions?.[0]?.link
144
- ? withBase(frontmatter.hero.actions?.[0]?.link)
145
- : undefined
146
- "
147
- :cta-text="frontmatter.hero.actions?.[0]?.text"
148
- :alt="frontmatter.hero.actions?.[1]"
149
- :alt-link="
150
- frontmatter.hero.actions?.[1]?.link
151
- ? withBase(frontmatter.hero.actions?.[1]?.link)
152
- : undefined
153
- "
154
- :alt-text="frontmatter.hero.actions?.[1]?.text"
155
- :image="frontmatter.hero.image"
156
- ></esa-cover>
157
- </ClientOnly>
135
+ <slot name="home-hero-before">
136
+ <ClientOnly v-if="!$slots['home-hero-before']">
137
+ <esa-cover
138
+ :overline="frontmatter.title"
139
+ :title="frontmatter.hero.text"
140
+ :background-image="frontmatter.hero.background"
141
+ :underline="frontmatter.hero.tagline"
142
+ :cta="frontmatter.hero.actions?.[0]"
143
+ :cta-link="
144
+ frontmatter.hero.actions?.[0]?.link
145
+ ? withBase(frontmatter.hero.actions?.[0]?.link)
146
+ : undefined
147
+ "
148
+ :cta-text="frontmatter.hero.actions?.[0]?.text"
149
+ :alt="frontmatter.hero.actions?.[1]"
150
+ :alt-link="
151
+ frontmatter.hero.actions?.[1]?.link
152
+ ? withBase(frontmatter.hero.actions?.[1]?.link)
153
+ : undefined
154
+ "
155
+ :alt-text="frontmatter.hero.actions?.[1]?.text"
156
+ :image="frontmatter.hero.image"
157
+ ></esa-cover>
158
+ </ClientOnly>
159
+ </slot>
158
160
  </template>
159
161
  <template #layout-bottom>
160
162
  <ClientOnly>