@eox/pages-theme-eox 0.4.5 → 0.4.7
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 +24 -6
- package/src/index.js +3 -3
package/package.json
CHANGED
package/src/Layout.vue
CHANGED
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
<li v-for="item in theme.nav.filter((item) => !item.action)">
|
|
35
35
|
<a
|
|
36
36
|
data-ui="#mobile-menu"
|
|
37
|
-
:href="item.link"
|
|
37
|
+
:href="withBase(item.link)"
|
|
38
|
+
:target="item.target"
|
|
39
|
+
:rel="item.rel"
|
|
38
40
|
:class="
|
|
39
41
|
item.action
|
|
40
42
|
? 'button large medium-elevate cta'
|
|
@@ -51,7 +53,9 @@
|
|
|
51
53
|
<nav v-for="item in theme.nav.filter((item) => item.action)">
|
|
52
54
|
<a
|
|
53
55
|
data-ui="#mobile-menu"
|
|
54
|
-
:href="item.link"
|
|
56
|
+
:href="withBase(item.link)"
|
|
57
|
+
:target="item.target"
|
|
58
|
+
:rel="item.rel"
|
|
55
59
|
:class="
|
|
56
60
|
item.action
|
|
57
61
|
? `button responsive large medium-elevate cta ${item.action}`
|
|
@@ -80,7 +84,12 @@
|
|
|
80
84
|
<nav>
|
|
81
85
|
<ul class="left-align no-margin">
|
|
82
86
|
<li v-for="item in theme.nav.filter((i) => !i.action)">
|
|
83
|
-
<a
|
|
87
|
+
<a
|
|
88
|
+
:href="withBase(item.link)"
|
|
89
|
+
:target="item.target"
|
|
90
|
+
:rel="item.rel"
|
|
91
|
+
>{{ item.text }}</a
|
|
92
|
+
>
|
|
84
93
|
</li>
|
|
85
94
|
</ul>
|
|
86
95
|
</nav>
|
|
@@ -91,7 +100,9 @@
|
|
|
91
100
|
<a
|
|
92
101
|
class="button right-align"
|
|
93
102
|
:class="item.action === 'primary' ? '' : 'text'"
|
|
94
|
-
:href="item.link"
|
|
103
|
+
:href="withBase(item.link)"
|
|
104
|
+
:target="item.target"
|
|
105
|
+
:rel="item.rel"
|
|
95
106
|
>
|
|
96
107
|
<span>{{ item.text }}</span>
|
|
97
108
|
<i class="mdi mdi-arrow-right"></i>
|
|
@@ -114,7 +125,9 @@
|
|
|
114
125
|
<div>
|
|
115
126
|
<a
|
|
116
127
|
v-for="action in frontmatter.hero.actions"
|
|
117
|
-
:href="action.link"
|
|
128
|
+
:href="withBase(action.link)"
|
|
129
|
+
:target="action.target"
|
|
130
|
+
:rel="action.rel"
|
|
118
131
|
class="button large medium-elevate cta"
|
|
119
132
|
:class="action.theme"
|
|
120
133
|
>
|
|
@@ -136,7 +149,12 @@
|
|
|
136
149
|
/>
|
|
137
150
|
<ul>
|
|
138
151
|
<li v-for="item in theme.nav">
|
|
139
|
-
<a
|
|
152
|
+
<a
|
|
153
|
+
:href="withBase(item.link)"
|
|
154
|
+
:target="item.target"
|
|
155
|
+
:rel="item.rel"
|
|
156
|
+
>{{ item.text }}</a
|
|
157
|
+
>
|
|
140
158
|
</li>
|
|
141
159
|
</ul>
|
|
142
160
|
</nav>
|
package/src/index.js
CHANGED
|
@@ -8,9 +8,6 @@ export default {
|
|
|
8
8
|
extends: DefaultTheme,
|
|
9
9
|
Layout,
|
|
10
10
|
enhanceApp({ app, router, siteData }) {
|
|
11
|
-
document.body.classList.remove("dark");
|
|
12
|
-
document.body.classList.add("light");
|
|
13
|
-
|
|
14
11
|
app.component("FeatureSection", FeatureSection);
|
|
15
12
|
|
|
16
13
|
router.onAfterRouteChanged = () => {
|
|
@@ -20,6 +17,9 @@ export default {
|
|
|
20
17
|
};
|
|
21
18
|
|
|
22
19
|
if (!import.meta.env.SSR) {
|
|
20
|
+
document.body.classList.remove("dark");
|
|
21
|
+
document.body.classList.add("light");
|
|
22
|
+
|
|
23
23
|
const brandStyle = document.createElement("style");
|
|
24
24
|
brandStyle.appendChild(
|
|
25
25
|
document.createTextNode(`
|