@eox/pages-theme-eox 0.4.2 → 0.4.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.
package/package.json
CHANGED
package/src/Layout.vue
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<nav class="large-padding no-margin center-align nav-mobile">
|
|
8
8
|
<a href="/">
|
|
9
9
|
<img
|
|
10
|
-
:src="theme.logo"
|
|
10
|
+
:src="withBase(theme.logo)"
|
|
11
11
|
:alt="`${theme.siteTitle} logo`"
|
|
12
12
|
class="logo"
|
|
13
13
|
/>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<nav>
|
|
21
21
|
<a data-ui="#mobile-menu" href="/">
|
|
22
22
|
<img
|
|
23
|
-
:src="theme.logo"
|
|
23
|
+
:src="withBase(theme.logo)"
|
|
24
24
|
:alt="`${theme.siteTitle} logo`"
|
|
25
25
|
class="logo margin"
|
|
26
26
|
/>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
>
|
|
48
48
|
<a href="/">
|
|
49
49
|
<img
|
|
50
|
-
:src="theme.logo"
|
|
50
|
+
:src="withBase(theme.logo)"
|
|
51
51
|
:alt="`${theme.siteTitle} logo`"
|
|
52
52
|
class="logo"
|
|
53
53
|
/>
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
<img
|
|
76
76
|
v-if="frontmatter.hero.image"
|
|
77
77
|
class="background-image"
|
|
78
|
-
:src="frontmatter.hero.image.src"
|
|
78
|
+
:src="withBase(frontmatter.hero.image.src)"
|
|
79
79
|
/>
|
|
80
|
-
<h1 class="large bold" style="font-size: clamp(
|
|
80
|
+
<h1 class="large bold" style="font-size: clamp(3rem, 5vw, 94px)">
|
|
81
81
|
{{ frontmatter.hero.text }}
|
|
82
82
|
</h1>
|
|
83
83
|
<p>{{ frontmatter.hero.tagline }}</p>
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
<div class="">
|
|
101
101
|
<nav class="padding right-align">
|
|
102
102
|
<img
|
|
103
|
-
:src="theme.logo"
|
|
103
|
+
:src="withBase(theme.logo)"
|
|
104
104
|
:alt="`${theme.siteTitle} logo`"
|
|
105
105
|
class="logo"
|
|
106
106
|
/>
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
<script setup>
|
|
131
131
|
import DefaultTheme from "vitepress/theme";
|
|
132
132
|
const { Layout } = DefaultTheme;
|
|
133
|
-
import { useData } from "vitepress";
|
|
133
|
+
import { useData, withBase } from "vitepress";
|
|
134
134
|
const { frontmatter, theme } = useData();
|
|
135
135
|
|
|
136
136
|
if (!import.meta.env.SSR) {
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
</a>
|
|
22
22
|
</nav>
|
|
23
23
|
</div>
|
|
24
|
-
<img :src="image" :alt="title" />
|
|
24
|
+
<img :src="withBase(image)" :alt="title" />
|
|
25
25
|
</div>
|
|
26
26
|
</section>
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup>
|
|
30
30
|
import { defineProps } from "vue";
|
|
31
|
+
import { withBase } from "vitepress";
|
|
31
32
|
const props = defineProps([
|
|
32
33
|
"button",
|
|
33
34
|
"icon",
|