@eox/pages-theme-esa 0.7.0 → 0.7.2
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.
- package/package.json +1 -1
- package/src/Layout.vue +7 -7
package/package.json
CHANGED
package/src/Layout.vue
CHANGED
|
@@ -59,7 +59,7 @@ onMounted(async () => {
|
|
|
59
59
|
if (href.startsWith("http") || target === "_blank") {
|
|
60
60
|
window.open(href, target).focus();
|
|
61
61
|
} else {
|
|
62
|
-
router.go(withBase(href));
|
|
62
|
+
router.go(!href.startsWith(site.value.base) ? withBase(href) : href);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -101,14 +101,14 @@ onMounted(async () => {
|
|
|
101
101
|
<ClientOnly>
|
|
102
102
|
<slot name="layout-top"></slot>
|
|
103
103
|
<esa-menu
|
|
104
|
-
.menuItems="theme.nav.map((n) => ({ title: n.text, href: n.link }))"
|
|
104
|
+
.menuItems="theme.nav.map((n) => ({ title: n.text, href: withBase(n.link) }))"
|
|
105
105
|
:enable-login="theme.login"
|
|
106
106
|
></esa-menu>
|
|
107
107
|
<esa-header></esa-header>
|
|
108
108
|
<esa-navbar
|
|
109
|
-
:brand-logo="withBase(theme.logo)"
|
|
109
|
+
:brand-logo="theme.logo? withBase(theme.logo) : undefined"
|
|
110
110
|
:brand-title="site.title"
|
|
111
|
-
.menuItems="theme.nav.map((n) => ({ title: n.text, href: n.link }))"
|
|
111
|
+
.menuItems="theme.nav.map((n) => ({ title: n.text, href: withBase(n.link) }))"
|
|
112
112
|
:enable-login="theme.login"
|
|
113
113
|
></esa-navbar>
|
|
114
114
|
</ClientOnly>
|
|
@@ -121,10 +121,10 @@ onMounted(async () => {
|
|
|
121
121
|
:background-image="frontmatter.hero.background"
|
|
122
122
|
:underline="frontmatter.hero.tagline"
|
|
123
123
|
:cta="frontmatter.hero.actions?.[0]"
|
|
124
|
-
:cta-link="frontmatter.hero.actions?.[0]?.link"
|
|
124
|
+
:cta-link="frontmatter.hero.actions?.[0]?.link ? withBase(frontmatter.hero.actions?.[0]?.link) : undefined"
|
|
125
125
|
:cta-text="frontmatter.hero.actions?.[0]?.text"
|
|
126
126
|
:alt="frontmatter.hero.actions?.[1]"
|
|
127
|
-
:alt-link="frontmatter.hero.actions?.[1]?.link"
|
|
127
|
+
:alt-link="frontmatter.hero.actions?.[1]?.link ? withBase(frontmatter.hero.actions?.[1]?.link) : undefined"
|
|
128
128
|
:alt-text="frontmatter.hero.actions?.[1]?.text"
|
|
129
129
|
:image="frontmatter.hero.image"
|
|
130
130
|
></esa-cover>
|
|
@@ -180,7 +180,7 @@ onMounted(async () => {
|
|
|
180
180
|
<section class="blue" style="margin-top: var(--vp-nav-height);">
|
|
181
181
|
<h1>404</h1>
|
|
182
182
|
<p>Page not found</p>
|
|
183
|
-
<a class="VPButton cta" href="/">Go to Home</a>
|
|
183
|
+
<a class="VPButton cta" :href="withBase('/')">Go to Home</a>
|
|
184
184
|
</section>
|
|
185
185
|
</template>
|
|
186
186
|
</Layout>
|