valaxy-theme-yun 0.25.4 → 0.25.6

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.
@@ -24,7 +24,7 @@ const postTitleClass = computed(() => {
24
24
  </script>
25
25
 
26
26
  <template>
27
- <a class="w-full flex-center post-card-link" :href="post.path || ''">
27
+ <RouterLink class="post-card-link flex-center w-full" :to="post.path || ''">
28
28
  <YunCard
29
29
  class="w-full hover:scale-102 hover:z-1" mx="4" :class="post.cover ? 'post-card-image' : 'post-card'"
30
30
  overflow="hidden" :style="styles"
@@ -84,7 +84,7 @@ const postTitleClass = computed(() => {
84
84
  <YunPostTags v-if="post.tags" m="1" :tags="post.tags" />
85
85
  </div>
86
86
  </YunCard>
87
- </a>
87
+ </RouterLink>
88
88
  </template>
89
89
 
90
90
  <style lang="scss">
@@ -98,6 +98,8 @@ const postTitleClass = computed(() => {
98
98
  .post-card-link {
99
99
  text-decoration: none;
100
100
  color: inherit;
101
+ // max-w-$yun-post-card-max-width
102
+ max-width: calc(var(--yun-post-card-max-width) + 2rem);
101
103
 
102
104
  &:hover {
103
105
  text-decoration: none;
@@ -28,7 +28,7 @@ const displayedPosts = computed(() =>
28
28
  </script>
29
29
 
30
30
  <template>
31
- <div flex="~ col" class="yun-post-list gap-4" w="full" p="x-4 lt-sm:0">
31
+ <div flex="~ col" class="yun-post-list gap-4 items-center" w="full" p="x-4 lt-sm:0">
32
32
  <template v-if="!displayedPosts.length">
33
33
  <div py2 op50 text-center>
34
34
  博主还什么都没写哦~
@@ -13,11 +13,13 @@ const curCategory = ref('all')
13
13
 
14
14
  <template>
15
15
  <div flex="~ col center">
16
- <h2 class="mb-3 text-2xl">
17
- {{ fm.title || t('title.projects') }}
18
- </h2>
16
+ <YunPageHeader
17
+ :title="fm.title || t('title.projects')"
18
+ :icon="fm.icon"
19
+ :page-title-class="fm.pageTitleClass"
20
+ />
19
21
 
20
- <div flex="~ wrap" justify="center">
22
+ <div class="mt-3" flex="~ wrap" justify="center">
21
23
  <YunProjectToggleButton
22
24
  :active="curCategory === 'all'"
23
25
  @click="curCategory = 'all'"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
3
  "type": "module",
4
- "version": "0.25.4",
4
+ "version": "0.25.6",
5
5
  "author": {
6
6
  "email": "me@yunyoujun.cn",
7
7
  "name": "YunYouJun",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/animejs": "^3.1.13",
35
- "valaxy": "0.25.4",
35
+ "valaxy": "0.25.6",
36
36
  "valaxy-addon-waline": "0.2.1"
37
37
  },
38
38
  "scripts": {