Skip to content

Commit dcf887d

Browse files
committed
fix: zlink, article. uptate status.
1 parent 697d781 commit dcf887d

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

app/components/partial/Article.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function getPostTime(date: string) {
3030
<time :datetime="published">{{ tPublishedLabel }}</time>
3131
</div>
3232
<h2 class="article-title">
33-
{{ title }}
33+
{{ title['#text'] || title }}
3434
</h2>
3535
<p class="article-descrption">
3636
{{ summary['#text'] || summary }}

app/components/partial/Link.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ defineProps<{ to?: string }>()
55
<template>
66
<ZRawLink class="z-link" :to="to">
77
<slot />
8-
<Icon v-if="isExtLink(to)" class="external" name="ph:arrow-up-right" />
98
</ZRawLink>
9+
<Icon v-if="isExtLink(to)" class="external" name="ph:arrow-up-right" />
1010
</template>
1111

1212
<style scoped lang="scss">
1313
.z-link {
1414
background: linear-gradient(var(--c-primary-3), var(--c-primary-3)) no-repeat center bottom / 100% 0.1em;
15-
text-decoration: none;
1615
color: var(--c-primary-1);
17-
transition: 0.2s;
16+
transition: background-size 0.2s;
1817
1918
&:hover {
2019
border-radius: 0.3em;
@@ -24,6 +23,7 @@ defineProps<{ to?: string }>()
2423
2524
.iconify.external {
2625
font-size: 0.8em;
27-
vertical-align: top;
26+
vertical-align: text-top;
27+
color: var(--c-primary-2);
2828
}
2929
</style>

app/pages/home.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@ const appConfig = useAppConfig()
3535
</p>
3636
</ZField>
3737

38-
<ZField label="关于网站">
38+
<ZField label="近期活动">
3939
<p>
40-
自2024年6月1日开始重构,目前还在修缮中。
40+
7 月完善<ZLink to="https://wiki.cooo.site/">
41+
西邮Wiki
42+
</ZLink>,8 月使用 Nuxt Content 重构了<ZLink to="https://blog.zhilu.cyou/">
43+
个人博客
44+
</ZLink>,但还未完成。
4145
</p>
4246
</ZField>
43-
<ZField label="开源衍生">
47+
48+
<ZField label="关于主页">
49+
<p>
50+
自2024年6月1日开始重构,目前还在修缮中。
51+
</p>
4452
<p>
4553
感谢
4654
<ZBadge img="https://cdn.libravatar.org/avatar/ecb2ea87c4532f007838d86d02798f89" to="https://github.com/KazariEX">
@@ -66,6 +74,9 @@ const appConfig = useAppConfig()
6674
<ZBadge rel="nofollow" img="https://api-space.tnxg.top/avatar?s=qq" to="https://tnxg.top/">
6775
天翔TNXG
6876
</ZBadge>
77+
<ZBadge rel="nofollow" img="https://ykc.im/icon.png" to="https://ykc.im/">
78+
York Chou
79+
</ZBadge>
6980
</p>
7081
</ZField>
7182
</div>

0 commit comments

Comments
 (0)