valaxy-theme-yun 0.6.3 → 0.7.0

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.
@@ -44,7 +44,7 @@ const title = usePostTitle(computed(() => props.frontmatter))
44
44
 
45
45
  <slot name="main-nav-after" />
46
46
 
47
- <slot v-if="frontmatter.comment !== false" name="comment">
47
+ <slot v-if="config.comment.enable && frontmatter.comment !== false" name="comment">
48
48
  <YunCard w="full" p="4" class="comment sm:p-6 lg:px-12 xl:px-16" :class="frontmatter.nav === false ? 'mt-4' : 0">
49
49
  <YunWaline v-if="config.comment.waline.enable" />
50
50
  <YunTwikoo v-if="config.comment.twikoo.enable" />
@@ -4,7 +4,11 @@ defineProps<{ cover?: string }>()
4
4
 
5
5
  <template>
6
6
  <div class="yun-card">
7
- <img v-if="cover" class="object-cover select-none" h="64 md:sm" w="full" :src="cover">
7
+ <img
8
+ v-if="cover"
9
+ width="640" height="360"
10
+ class="object-cover select-none" h="64 md:sm" w="full" :src="cover"
11
+ >
8
12
 
9
13
  <div v-if="$slots.header" class="yun-card-header">
10
14
  <header>
@@ -12,7 +12,7 @@ interface LinkType {
12
12
  }
13
13
 
14
14
  const props = defineProps<{
15
- links: LinkType[]
15
+ links: string | LinkType[]
16
16
  random: boolean
17
17
  }>()
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -14,11 +14,11 @@
14
14
  "main": "dist/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "dependencies": {
17
- "@iconify-json/ant-design": "^1.1.2",
18
- "@iconify-json/simple-icons": "^1.1.16"
17
+ "@iconify-json/ant-design": "^1.1.3",
18
+ "@iconify-json/simple-icons": "^1.1.18"
19
19
  },
20
20
  "devDependencies": {
21
- "valaxy": "0.6.3"
21
+ "valaxy": "0.7.0"
22
22
  },
23
23
  "scripts": {
24
24
  "build": "tsup",
@@ -8,10 +8,6 @@
8
8
  .post-card-image {
9
9
  @extend .post-card;
10
10
 
11
- .post-card-image-info-text {
12
- height: 0;
13
- }
14
-
15
11
  @include mobile {
16
12
  .post-card-info {
17
13
  flex-direction: column;
@@ -93,4 +89,4 @@
93
89
  &:before {
94
90
  content: none;
95
91
  }
96
- }
92
+ }