@eox/pages-theme-eox 0.4.6 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/pages-theme-eox",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
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 :href="item.link">{{ item.text }}</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 :href="item.link">{{ item.text }}</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
@@ -9,13 +9,13 @@ export default {
9
9
  Layout,
10
10
  enhanceApp({ app, router, siteData }) {
11
11
  app.component("FeatureSection", FeatureSection);
12
-
12
+
13
13
  router.onAfterRouteChanged = () => {
14
14
  if (!import.meta.env.SSR) {
15
15
  window.scrollTo(0, 0);
16
16
  }
17
17
  };
18
-
18
+
19
19
  if (!import.meta.env.SSR) {
20
20
  document.body.classList.remove("dark");
21
21
  document.body.classList.add("light");