@eox/pages-theme-eox 0.11.0 → 0.11.1

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.11.0",
3
+ "version": "0.11.1",
4
4
  "type": "module",
5
5
  "description": "Vitepress Theme with EOX branding",
6
6
  "main": "src/index.js",
@@ -66,4 +66,7 @@ article {
66
66
  .button:hover .arrow {
67
67
  transform: translateX(4px);
68
68
  }
69
+ .button.transparent:hover:after {
70
+ background: none;
71
+ }
69
72
  </style>
@@ -34,17 +34,18 @@ const { page, site } = useData();
34
34
  const featuresExcerpts =
35
35
  cards && cards.length
36
36
  ? cards
37
- : features.map((f) => {
38
- if (import.meta.env.SSR) {
39
- return [];
40
- }
41
- const el = document.createElement("html");
42
- el.innerHTML = f.html;
43
- /** @type {HTMLElement} */
44
- const featureSection = el.querySelector("featuresection");
45
- return featureSection &&
46
- !page.value.relativePath.includes(f.url.replace("/", ""))
47
- ? {
37
+ : features
38
+ .map((f) => {
39
+ if (import.meta.env.SSR) {
40
+ return [];
41
+ }
42
+ const el = document.createElement("html");
43
+ el.innerHTML = f.html;
44
+ /** @type {HTMLElement} */
45
+ const featureSection = el.querySelector("featuresection");
46
+ return (
47
+ featureSection &&
48
+ !page.value.relativePath.includes(f.url.replace("/", "")) && {
48
49
  id: Symbol(),
49
50
  title: featureSection.title,
50
51
  content: featureSection.textContent,
@@ -61,8 +62,9 @@ const featuresExcerpts =
61
62
  target: "_self",
62
63
  },
63
64
  }
64
- : [];
65
- });
65
+ );
66
+ })
67
+ .filter((f) => f);
66
68
  const siteTitle = sectionTitle || `More ${site.value.title} features:`;
67
69
  </script>
68
70