valaxy-theme-yun 0.15.7 → 0.15.8

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.
@@ -93,6 +93,7 @@ onContentUpdated(() => {
93
93
  <slot name="main-content">
94
94
  <Transition appear>
95
95
  <ValaxyMd :frontmatter="frontmatter">
96
+ <YunAiExcerpt v-if="frontmatter.excerpt_type === 'ai' && frontmatter.excerpt" />
96
97
  <YunMdTimeWarning :frontmatter="frontmatter" />
97
98
 
98
99
  <slot name="main-content-md" />
@@ -0,0 +1,21 @@
1
+ <script lang="ts" setup>
2
+ import { useFrontmatter } from 'valaxy'
3
+ import { useI18n } from 'vue-i18n'
4
+
5
+ const fm = useFrontmatter()
6
+ const { t } = useI18n()
7
+ </script>
8
+
9
+ <template>
10
+ <div class="ai-generated-excerpt rounded-lg bg-$va-c-bg-alt p-4">
11
+ <div font="black" flex items-center>
12
+ <div mr-1 i-ri-robot-2-line />
13
+ <div>
14
+ {{ t('excerpt.ai') }}
15
+ </div>
16
+ </div>
17
+ <div op="90" mt-1>
18
+ {{ fm.excerpt }}
19
+ </div>
20
+ </div>
21
+ </template>
@@ -69,14 +69,7 @@ const { icon, styles } = usePostProperty(props.post.type)
69
69
  <YunPostCategories m="l-1" :categories="post.categories" />
70
70
  </div>
71
71
 
72
- <div
73
- class="post-tags inline-flex" items="center" gap="1"
74
- flex="wrap 1" justify="end" m="1"
75
- >
76
- <template v-if="post.tags">
77
- <YunPostTags :tags="post.tags" />
78
- </template>
79
- </div>
72
+ <YunPostTags v-if="post.tags" m="1" :tags="post.tags" />
80
73
  </div>
81
74
  </YunCard>
82
75
  </template>
@@ -9,7 +9,7 @@ defineProps<{
9
9
  <template>
10
10
  <div class="inline-flex" text="sm" py="1">
11
11
  <YunPostCategories v-if="frontmatter.categories" :categories="frontmatter.categories" />
12
- <span v-if="frontmatter.categories && frontmatter.tags" mx="2">-</span>
12
+ <span v-if="frontmatter.categories && frontmatter.tags" mx="2" />
13
13
  <YunPostTags v-if="frontmatter.tags" :tags="frontmatter.tags" />
14
14
  </div>
15
15
  </template>
@@ -7,15 +7,20 @@ defineProps<{
7
7
  </script>
8
8
 
9
9
  <template>
10
- <router-link
11
- v-for="tag, i in tags" :key="i" :to="{ path: '/tags/', query: { tag } }"
12
- class="transition post-tag inline-flex-center text-xs border-$va-c-divider hover:(text-blue-500 border-blue-500)"
13
- px-2 h="7"
14
- rounded-full
15
- border
16
- bg="hover:(blue-500 opacity-10)"
10
+ <div
11
+ class="post-tags inline-flex" items="center" gap="1"
12
+ flex="wrap 1" justify="end"
17
13
  >
18
- <!-- <div m="r-1" i-ri-price-tag-3-line /> -->
19
- <span>{{ tag }}</span>
20
- </router-link>
14
+ <router-link
15
+ v-for="tag, i in tags" :key="i" :to="{ path: '/tags/', query: { tag } }"
16
+ class="transition post-tag inline-flex-center text-xs border-$va-c-divider hover:(text-blue-500 border-blue-500)"
17
+ px-2 h="7"
18
+ rounded-full
19
+ border
20
+ bg="hover:(blue-500 opacity-10)"
21
+ >
22
+ <!-- <div m="r-1" i-ri-price-tag-3-line /> -->
23
+ <span>{{ tag }}</span>
24
+ </router-link>
25
+ </div>
21
26
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.15.7",
3
+ "version": "0.15.8",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -19,12 +19,12 @@
19
19
  "dependencies": {
20
20
  "@explosions/fireworks": "^0.0.2",
21
21
  "@iconify-json/ant-design": "^1.1.10",
22
- "@iconify-json/simple-icons": "^1.1.74",
22
+ "@iconify-json/simple-icons": "^1.1.75",
23
23
  "animejs": "^3.2.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/animejs": "^3.1.8",
27
- "valaxy": "0.15.7",
26
+ "@types/animejs": "^3.1.10",
27
+ "valaxy": "0.15.8",
28
28
  "valaxy-addon-waline": "0.1.1"
29
29
  }
30
30
  }