valaxy-theme-yun 0.6.1 → 0.6.2
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/components/ValaxyMain.vue +4 -1
- package/components/YunAside.vue +0 -1
- package/layouts/archives.vue +2 -2
- package/layouts/base.vue +10 -0
- package/layouts/categories.vue +8 -6
- package/layouts/tags.vue +8 -6
- package/package.json +2 -2
- package/styles/layout/index.scss +1 -8
@@ -16,7 +16,7 @@ const title = usePostTitle(computed(() => props.frontmatter))
|
|
16
16
|
<template>
|
17
17
|
<main class="yun-main lt-md:ml-0" flex="~">
|
18
18
|
<div w="full" flex="~">
|
19
|
-
<slot name="main
|
19
|
+
<slot name="main">
|
20
20
|
<div class="content" flex="~ col grow" w="full" p="l-4 lt-md:0">
|
21
21
|
<YunCard :cover="frontmatter.cover" m="0" class="relative" :style="styles">
|
22
22
|
<slot name="main-header">
|
@@ -25,6 +25,7 @@ const title = usePostTitle(computed(() => props.frontmatter))
|
|
25
25
|
<slot name="main-header-after" />
|
26
26
|
|
27
27
|
<div p="x-4 b-8" class="sm:px-6 lg:px-12 xl:px-16" w="full">
|
28
|
+
<slot name="main-content" />
|
28
29
|
<ValaxyMd :frontmatter="frontmatter">
|
29
30
|
<slot name="main-content-md" />
|
30
31
|
<slot />
|
@@ -32,6 +33,8 @@ const title = usePostTitle(computed(() => props.frontmatter))
|
|
32
33
|
</div>
|
33
34
|
</YunCard>
|
34
35
|
|
36
|
+
<slot name="main-content-after" />
|
37
|
+
|
35
38
|
<slot name="main-nav">
|
36
39
|
<YunPostNav v-if="frontmatter.nav !== false" />
|
37
40
|
</slot>
|
package/components/YunAside.vue
CHANGED
package/layouts/archives.vue
CHANGED
@@ -12,10 +12,10 @@ const title = usePostTitle(frontmatter)
|
|
12
12
|
|
13
13
|
<template>
|
14
14
|
<Base>
|
15
|
-
<template #header>
|
15
|
+
<template #main-header>
|
16
16
|
<YunPageHeader :title="title || t('menu.archives')" :icon="frontmatter.icon || 'i-ri-archive-line'" :color="frontmatter.color" />
|
17
17
|
</template>
|
18
|
-
<template #content>
|
18
|
+
<template #main-content>
|
19
19
|
<router-view />
|
20
20
|
<YunPostCollapse :posts="postList" />
|
21
21
|
</template>
|
package/layouts/base.vue
CHANGED
@@ -20,12 +20,22 @@ const config = useConfig()
|
|
20
20
|
|
21
21
|
<router-view v-slot="{ Component }">
|
22
22
|
<component :is="Component">
|
23
|
+
<template #main-header>
|
24
|
+
<slot name="main-header" />
|
25
|
+
</template>
|
26
|
+
|
23
27
|
<template #main-header-after>
|
24
28
|
<slot name="main-header-after" />
|
25
29
|
</template>
|
26
30
|
<template #main>
|
27
31
|
<slot name="main" />
|
28
32
|
</template>
|
33
|
+
<template #main-content>
|
34
|
+
<slot name="main-content" />
|
35
|
+
</template>
|
36
|
+
<template #main-content-after>
|
37
|
+
<slot name="main-content-after" />
|
38
|
+
</template>
|
29
39
|
<template #aside-custom>
|
30
40
|
<slot name="aside-custom" />
|
31
41
|
</template>
|
package/layouts/categories.vue
CHANGED
@@ -47,14 +47,14 @@ const title = usePostTitle(frontmatter)
|
|
47
47
|
|
48
48
|
<template>
|
49
49
|
<Base>
|
50
|
-
<template #header>
|
50
|
+
<template #main-header>
|
51
51
|
<YunPageHeader
|
52
52
|
:title="title || t('menu.categories')"
|
53
53
|
:icon="frontmatter.icon || 'i-ri-folder-2-line'"
|
54
54
|
:color="frontmatter.color"
|
55
55
|
/>
|
56
56
|
</template>
|
57
|
-
<template #content>
|
57
|
+
<template #main-content>
|
58
58
|
<div text="center" class="yun-text-light" p="2">
|
59
59
|
{{ t('counter.categories', categories.children!.size) }}
|
60
60
|
</div>
|
@@ -62,9 +62,11 @@ const title = usePostTitle(frontmatter)
|
|
62
62
|
<router-view />
|
63
63
|
</template>
|
64
64
|
|
65
|
-
<
|
66
|
-
<
|
67
|
-
|
68
|
-
|
65
|
+
<template #main-content-after>
|
66
|
+
<YunCard v-if="curCategory" ref="collapse" m="t-4" w="full">
|
67
|
+
<YunPageHeader :title="curCategory === 'Uncategorized' ? t('category.uncategorized') : curCategory" icon="i-ri-folder-open-line" />
|
68
|
+
<YunPostCollapse w="full" m="b-4" p="x-20 lt-sm:x-5" :posts="posts" />
|
69
|
+
</YunCard>
|
70
|
+
</template>
|
69
71
|
</Base>
|
70
72
|
</template>
|
package/layouts/tags.vue
CHANGED
@@ -49,14 +49,14 @@ const title = usePostTitle(frontmatter)
|
|
49
49
|
|
50
50
|
<template>
|
51
51
|
<Base>
|
52
|
-
<template #header>
|
52
|
+
<template #main-header>
|
53
53
|
<YunPageHeader
|
54
54
|
:title="title || t('menu.tags')"
|
55
55
|
:icon="frontmatter.icon || 'i-ri-tag-line'"
|
56
56
|
:color="frontmatter.color"
|
57
57
|
/>
|
58
58
|
</template>
|
59
|
-
<template #content>
|
59
|
+
<template #main-content>
|
60
60
|
<div class="yun-text-light" text="center" p="2">
|
61
61
|
{{ t('counter.tags', Array.from(tags).length) }}
|
62
62
|
</div>
|
@@ -70,10 +70,12 @@ const title = usePostTitle(frontmatter)
|
|
70
70
|
<router-view />
|
71
71
|
</template>
|
72
72
|
|
73
|
-
<
|
74
|
-
<
|
75
|
-
|
76
|
-
|
73
|
+
<template #main-content-after>
|
74
|
+
<YunCard v-if="curTag" ref="collapse" m="t-4" w="full">
|
75
|
+
<YunPageHeader :title="curTag" icon="i-ri-hashtag" />
|
76
|
+
<YunPostCollapse w="full" m="b-4" p="x-20 lt-sm:x-5" :posts="posts" />
|
77
|
+
</YunCard>
|
78
|
+
</template>
|
77
79
|
</Base>
|
78
80
|
</template>
|
79
81
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.2",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"@iconify-json/simple-icons": "^1.1.16"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
|
-
"valaxy": "0.6.
|
21
|
+
"valaxy": "0.6.2"
|
22
22
|
},
|
23
23
|
"scripts": {
|
24
24
|
"build": "tsup",
|
package/styles/layout/index.scss
CHANGED
@@ -2,14 +2,7 @@
|
|
2
2
|
@use "./post" as *;
|
3
3
|
|
4
4
|
.yun-main {
|
5
|
-
// margin: 0;
|
6
5
|
padding-left: var(--va-sidebar-width-mobile);
|
7
6
|
transition: padding-left var(--va-transition-duration);
|
8
|
-
|
9
|
-
box-sizing: content-box;
|
10
|
-
|
11
|
-
// max-width: calc(100vw - var(--va-sidebar-width-mobile));
|
12
|
-
// max-width: calc(100vw - 2 * var(--va-sidebar-width-mobile) - 1rem - 8px);
|
7
|
+
box-sizing: border-box;
|
13
8
|
}
|
14
|
-
|
15
|
-
// @include xl
|