@eox/pages-theme-esa 0.8.2 → 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 +26 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/pages-theme-esa",
3
- "version": "0.8.2",
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
@@ -123,6 +123,7 @@ onMounted(async () => {
123
123
  ></esa-menu>
124
124
  <esa-header></esa-header>
125
125
  <esa-navbar
126
+ :brand-href="withBase('/')"
126
127
  :brand-logo="theme.logo ? withBase(theme.logo) : undefined"
127
128
  :brand-title="site.title"
128
129
  .menuItems="theme.nav.map((n) => ({ title: n.text, href: withBase(n.link) }))"
@@ -131,29 +132,31 @@ onMounted(async () => {
131
132
  </ClientOnly>
132
133
  </template>
133
134
  <template #home-hero-before>
134
- <ClientOnly>
135
- <esa-cover
136
- :overline="frontmatter.title"
137
- :title="frontmatter.hero.text"
138
- :background-image="frontmatter.hero.background"
139
- :underline="frontmatter.hero.tagline"
140
- :cta="frontmatter.hero.actions?.[0]"
141
- :cta-link="
142
- frontmatter.hero.actions?.[0]?.link
143
- ? withBase(frontmatter.hero.actions?.[0]?.link)
144
- : undefined
145
- "
146
- :cta-text="frontmatter.hero.actions?.[0]?.text"
147
- :alt="frontmatter.hero.actions?.[1]"
148
- :alt-link="
149
- frontmatter.hero.actions?.[1]?.link
150
- ? withBase(frontmatter.hero.actions?.[1]?.link)
151
- : undefined
152
- "
153
- :alt-text="frontmatter.hero.actions?.[1]?.text"
154
- :image="frontmatter.hero.image"
155
- ></esa-cover>
156
- </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>
157
160
  </template>
158
161
  <template #layout-bottom>
159
162
  <ClientOnly>