valaxy-theme-yun 0.14.45 → 0.14.46

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.
@@ -0,0 +1,16 @@
1
+ <script lang="ts" setup>
2
+ defineProps<{
3
+ title: string
4
+ count: number
5
+ }>()
6
+ </script>
7
+
8
+ <template>
9
+ <span
10
+ inline-flex my="2" p="1"
11
+ class="post-tag cursor-pointer items-baseline leading-4"
12
+ >
13
+ <span inline-flex>#{{ title }}</span>
14
+ <span inline-flex text="xs">[{{ count }}]</span>
15
+ </span>
16
+ </template>
@@ -7,7 +7,7 @@ defineProps<{
7
7
  </script>
8
8
 
9
9
  <template>
10
- <header class="post-header" m="t-4">
10
+ <header class="post-header" m="t-16 sm:t-6">
11
11
  <h1
12
12
  class="post-title flex-center" p="2" text="2xl center"
13
13
  font="serif black" :style="`color:${color}`"
@@ -41,7 +41,7 @@ const sortedYears = computed(() => {
41
41
  </script>
42
42
 
43
43
  <template>
44
- <div class="post-collapse px-10 lt-sm:px-5">
44
+ <div class="post-collapse px-10 lt-sm:px-5" relative>
45
45
  <div w="full" text="center" class="yun-text-light" p="2">
46
46
  {{ t('counter.archives', posts.length) }}
47
47
  </div>
@@ -54,18 +54,21 @@ const sortedYears = computed(() => {
54
54
  </div>
55
55
 
56
56
  <div v-for="year in sortedYears" :key="year" m="b-6">
57
- <div class="collection-title">
57
+ <div class="collection-title" m-0 relative>
58
58
  <h2 :id="`#archive-year-${year}`" class="archive-year" text="4xl" p="y-2">
59
59
  {{ year }}
60
60
  </h2>
61
61
  </div>
62
62
 
63
- <article v-for="post, j in sortByDate(postListByYear[year], isDesc)" :key="j" class="post-item">
64
- <header class="post-header">
63
+ <article
64
+ v-for="post, j in sortByDate(postListByYear[year], isDesc)" :key="j"
65
+ class="post-item" relative
66
+ >
67
+ <header class="post-header" flex items-center relative>
65
68
  <div class="post-meta">
66
69
  <time v-if="post.date" class="post-time" font="mono" opacity="80">{{ formatDate(post.date, 'MM-DD') }}</time>
67
70
  </div>
68
- <h2 class="post-title" font="serif black">
71
+ <h2 class="post-title" inline-flex items-center font="serif black">
69
72
  <router-link :to="post.path || ''" class="post-title-link">
70
73
  {{ post.title }}
71
74
  </router-link>
@@ -78,16 +81,7 @@ const sortedYears = computed(() => {
78
81
 
79
82
  <style lang="scss">
80
83
  .post-collapse {
81
- position: relative;
82
-
83
- &-title {
84
- font-size: 2rem;
85
- text-align: center;
86
- }
87
-
88
84
  .collection-title {
89
- position: relative;
90
- margin: 0;
91
85
  border-bottom: 2px solid rgba(var(--va-c-primary-rgb), 0.6);
92
86
 
93
87
  &::before {
@@ -119,8 +113,6 @@ const sortedYears = computed(() => {
119
113
  }
120
114
 
121
115
  .post-item {
122
- position: relative;
123
-
124
116
  &::before {
125
117
  content: '';
126
118
  position: absolute;
@@ -131,12 +123,7 @@ const sortedYears = computed(() => {
131
123
  }
132
124
 
133
125
  .post-header {
134
- display: flex;
135
- align-items: center;
136
-
137
- position: relative;
138
126
  border-bottom: 1px solid rgba(var(--va-c-primary-rgb), 0.3);
139
- display: flex;
140
127
 
141
128
  &::before {
142
129
  content: '';
@@ -162,8 +149,6 @@ const sortedYears = computed(() => {
162
149
  margin-left: 0.1rem;
163
150
  padding: 0;
164
151
  font-size: 1rem;
165
- display: inline-flex;
166
- align-items: center;
167
152
 
168
153
  .post-title-link {
169
154
  .icon {
@@ -181,10 +166,4 @@ const sortedYears = computed(() => {
181
166
  }
182
167
  }
183
168
  }
184
-
185
- .last-word {
186
- font-size: 1rem;
187
- margin-top: 1rem;
188
- margin-bottom: 0;
189
- }
190
169
  </style>
@@ -31,9 +31,9 @@ const tags = useTags()
31
31
  <span class="count">{{ Array.from(tags).length }}</span>
32
32
  </router-link>
33
33
 
34
- <app-link class="site-link-item yun-icon-btn" :to="themeConfig.menu.custom.url" :title="t(themeConfig.menu.custom.title)">
34
+ <AppLink class="site-link-item yun-icon-btn" :to="themeConfig.menu.custom.url" :title="t(themeConfig.menu.custom.title)">
35
35
  <div :class="themeConfig.menu.custom.icon" />
36
- </app-link>
36
+ </AppLink>
37
37
  </nav>
38
38
  </template>
39
39
 
package/layouts/tags.vue CHANGED
@@ -72,15 +72,14 @@ const title = usePostTitle(frontmatter)
72
72
  </div>
73
73
 
74
74
  <div class="justify-center items-end" flex="~ wrap" gap="1">
75
- <span
75
+ <YunLayoutPostTag
76
76
  v-for="[key, tag] in Array.from(tags).sort()"
77
77
  :key="key"
78
- inline-flex my="2"
79
- class="post-tag cursor-pointer items-baseline leading-4" :style="getTagStyle(tag.count)" p="1" @click="displayTag(key.toString())"
80
- >
81
- <span inline-flex>#{{ key }}</span>
82
- <span inline-flex text="xs">[{{ tag.count }}]</span>
83
- </span>
78
+ :title="key"
79
+ :count="tag.count"
80
+ :style="getTagStyle(tag.count)"
81
+ @click="displayTag(key.toString())"
82
+ />
84
83
  </div>
85
84
 
86
85
  <router-view />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.14.45",
3
+ "version": "0.14.46",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -17,13 +17,13 @@
17
17
  "main": "node/index.ts",
18
18
  "types": "types/index.d.ts",
19
19
  "dependencies": {
20
- "@iconify-json/ant-design": "^1.1.6",
21
- "@iconify-json/simple-icons": "^1.1.61",
20
+ "@iconify-json/ant-design": "^1.1.8",
21
+ "@iconify-json/simple-icons": "^1.1.64",
22
22
  "animejs": "^3.2.1",
23
23
  "valaxy-addon-waline": "0.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/animejs": "^3.1.7",
27
- "valaxy": "0.14.45"
27
+ "valaxy": "0.14.46"
28
28
  }
29
29
  }