@eox/pages-theme-eox 0.8.2 → 0.8.3
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 +27 -2
package/package.json
CHANGED
package/src/Layout.vue
CHANGED
|
@@ -74,6 +74,32 @@
|
|
|
74
74
|
:src="withBase(frontmatter.hero.background.src)"
|
|
75
75
|
/>
|
|
76
76
|
</header>
|
|
77
|
+
<nav
|
|
78
|
+
v-if="frontmatter.layout !== 'home'"
|
|
79
|
+
class="no-space"
|
|
80
|
+
style="max-width: 1200px; padding: 12px 24px; margin: auto; width: 100%; position: sticky; top: var(--vp-nav-height); z-index: 1;"
|
|
81
|
+
>
|
|
82
|
+
<template
|
|
83
|
+
v-for="(segment, index) in router.route.path.split('/')"
|
|
84
|
+
>
|
|
85
|
+
<p
|
|
86
|
+
v-if="index === router.route.path.split('/').length - 1"
|
|
87
|
+
class="capitalize surface"
|
|
88
|
+
>
|
|
89
|
+
{{ segment === '' ? 'Home' : (index === router.route.path.split('/').length - 1 ? page.title || segment.replaceAll('-', ' ') : segment.replaceAll('-', ' ')) }}
|
|
90
|
+
</p>
|
|
91
|
+
<template v-else>
|
|
92
|
+
<a
|
|
93
|
+
|
|
94
|
+
class="capitalize link surface"
|
|
95
|
+
:href="`${router.route.path.substring(0, (router.route.path.indexOf(segment) + segment.length) || 1)}`"
|
|
96
|
+
>
|
|
97
|
+
{{ segment === '' ? 'Home' : (index === router.route.path.split('/').length - 1 ? page.title || segment.replaceAll('-', ' ') : segment.replaceAll('-', ' ')) }}
|
|
98
|
+
</a>
|
|
99
|
+
<i class="mdi mdi-chevron-right small"></i>
|
|
100
|
+
</template>
|
|
101
|
+
</template>
|
|
102
|
+
</nav>
|
|
77
103
|
</template>
|
|
78
104
|
<template #not-found>
|
|
79
105
|
<ClientOnly v-if="router.route.path === '/cookie-settings'">
|
|
@@ -218,8 +244,7 @@ header > img.background-image {
|
|
|
218
244
|
object-fit: cover;
|
|
219
245
|
opacity: 0.4;
|
|
220
246
|
z-index: 0;
|
|
221
|
-
border-
|
|
222
|
-
border-top-right-radius: 0 !important;
|
|
247
|
+
border-radius: 0 !important;
|
|
223
248
|
}
|
|
224
249
|
header > .hero-container {
|
|
225
250
|
max-width: 1200px;
|