@eox/pages-theme-eox 0.4.10 → 0.4.11
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
|
@@ -8,13 +8,13 @@ const featuresExcerpts = features.map((f) => {
|
|
|
8
8
|
const el = document.createElement("html");
|
|
9
9
|
el.innerHTML = f.html;
|
|
10
10
|
const featureSection = el.querySelector("featuresection");
|
|
11
|
-
return featureSection
|
|
11
|
+
return featureSection &&
|
|
12
|
+
!page.value.relativePath.includes(f.url.replace("/", ""))
|
|
12
13
|
? {
|
|
13
14
|
title: featureSection.title,
|
|
14
15
|
description: featureSection.textContent,
|
|
15
16
|
image: featureSection.getAttribute("image"),
|
|
16
17
|
link: f.url,
|
|
17
|
-
show: page.value.relativePath.includes(f.url.replace("/", "")),
|
|
18
18
|
}
|
|
19
19
|
: false;
|
|
20
20
|
});
|
|
@@ -24,23 +24,21 @@ const featuresExcerpts = features.map((f) => {
|
|
|
24
24
|
<h2>Read more about these other {{ site.title }} features:</h2>
|
|
25
25
|
<div class="grid">
|
|
26
26
|
<a
|
|
27
|
-
v-for="(feature, index) in
|
|
28
|
-
(f, i) => f.show && featuresExcerpts[i],
|
|
29
|
-
)"
|
|
27
|
+
v-for="(feature, index) in featuresExcerpts.filter((f) => f)"
|
|
30
28
|
class="feature s12 m3"
|
|
31
|
-
:href="feature.
|
|
29
|
+
:href="feature.link"
|
|
32
30
|
>
|
|
33
31
|
<article class="no-padding">
|
|
34
32
|
<img
|
|
35
|
-
v-if="
|
|
33
|
+
v-if="feature.image"
|
|
36
34
|
class="responsive small"
|
|
37
|
-
:src="withBase(
|
|
35
|
+
:src="withBase(feature.image)"
|
|
38
36
|
/>
|
|
39
37
|
<div class="padding">
|
|
40
|
-
<h5 class="small">{{
|
|
41
|
-
<p>{{
|
|
38
|
+
<h5 class="small">{{ feature.title }}</h5>
|
|
39
|
+
<p>{{ feature.description }}</p>
|
|
42
40
|
<nav>
|
|
43
|
-
<a class="button" :href="
|
|
41
|
+
<a class="button" :href="feature.link">
|
|
44
42
|
<span>Read more</span>
|
|
45
43
|
<i class="mdi mdi-arrow-right"></i>
|
|
46
44
|
</a>
|