@eox/pages-theme-eox 0.4.7 → 0.4.8

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.7",
3
+ "version": "0.4.8",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
@@ -11,12 +11,22 @@
11
11
  <h5 :class="`title primary-text large`">{{ tagline }}</h5>
12
12
  <p><slot></slot></p>
13
13
  <nav>
14
- <a :href="link" :class="`button primary medium-elevate`">
15
- <span>{{ button || `Read more about ${title}` }}</span>
14
+ <a
15
+ v-if="primaryLink !== undefined"
16
+ :href="withBase(primaryLink)"
17
+ :target="primaryLink.includes('https://') ? '_blank' : '_self'"
18
+ :class="`button primary medium-elevate`"
19
+ >
20
+ <span>{{ primaryButton || `Read more about ${title}` }}</span>
16
21
  <i class="mdi mdi-arrow-right"></i>
17
22
  </a>
18
- <a v-if="landing === undefined" href="#" class="button border">
19
- <span>Contact sales</span>
23
+ <a
24
+ v-if="secondaryLink !== undefined"
25
+ :href="withBase(secondaryLink)"
26
+ :target="secondaryLink.includes('https://') ? '_blank' : '_self'"
27
+ class="button border"
28
+ >
29
+ <span>{{ secondaryButton || "Contact sales" }}</span>
20
30
  <i class="mdi mdi-arrow-right"></i>
21
31
  </a>
22
32
  </nav>
@@ -30,11 +40,13 @@
30
40
  import { defineProps } from "vue";
31
41
  import { withBase } from "vitepress";
32
42
  const props = defineProps([
33
- "button",
34
43
  "icon",
35
44
  "image",
36
45
  "landing",
37
- "link",
46
+ "primaryButton",
47
+ "primaryLink",
48
+ "secondaryButton",
49
+ "secondaryLink",
38
50
  "tagline",
39
51
  "title",
40
52
  ]);