Skip to content

Commit 69a0fe1

Browse files
committed
chore: add indicator for metadata, add 404 page
1 parent c7ec302 commit 69a0fe1

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

docs/404.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ comment: false
44
timestamp: false
55
---
66

7-
TODO: 这里应该加一些东西
7+
:v{7rem}
8+
9+
<center>你从哪里来,要到哪里去。</center>
10+
11+
:v{8rem}
12+
13+
你可以在左上角搜索,或者点击[这里](/)返回主页。

src/assets/ts/fontawesome.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
faBoxArchive,
1010
faCaretLeft,
1111
faCaretRight,
12+
faChevronLeft,
1213
faChevronRight,
1314
faCode,
1415
faCube,
@@ -52,5 +53,6 @@ library.add(
5253
faCode,
5354
faAtom,
5455
faBoxArchive,
55-
faFlag
56+
faFlag,
57+
faChevronLeft
5658
);

src/components/Metadata.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ defineProps<{
1212
<span class="breadcrumb">
1313
<template v-for="(item, index) in breadcrumb" :key="index">
1414
<router-link :to="item.link" class="text">
15+
<span class="back" v-if="breadcrumb.length === 1">
16+
<font-awesome-icon :icon="['fas', 'chevron-left']" />
17+
</span>
1518
{{ item.title }}
1619
</router-link>
1720
<span class="icon" v-if="index !== breadcrumb.length - 1">
@@ -49,13 +52,17 @@ $breadcrumb-hover-color = $theme-color;
4952
.icon
5053
width: 20px;
5154
text-align: center;
52-
font-size: 0.7em;
55+
font-size: 0.7rem;
5356
opacity: 0.85;
5457
5558
.text
56-
font-size: 0.9em;
59+
font-size: 0.9rem;
5760
transition: color 0.1s ease;
5861
62+
.back
63+
font-size: 0.8rem;
64+
opacity: 0.85;
65+
5966
&:hover
6067
color: $breadcrumb-hover-color;
6168
</style>

todo.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
11
## 近期
22

3-
- ToC 层级关系看起来很怪
3+
- ToC 层级关系看起来很怪(align left,参考 obsidian)
44
- ToC:默认折叠,hover 或滚动到目标位置展开(?)
55

6+
- 标题英文字体要改一下
7+
- 桌面端的 root 不要 index comp,换成别的
8+
- index comp,hover 范围广一点
9+
- migrate comment system
610
- 添加 ::active 以提升移动端体验
7-
- 完成 404 页
8-
- root 页,标题下面加点东西
11+
- root 页,标题下面加点东西(word count)
912
- 中文字体 cdn,目前加载太慢了
1013
- 添加 backtotop 按钮
1114
- 提供行内左中右布局
1215
- 提供文字颜色组件
1316
- 侧边栏(左右),允许折叠 / 滚动
1417
- 添加从 note 主页回到总主页的按钮
1518

19+
## 灵感
20+
21+
- 元胞自动机、陨石雨、Gravity
22+
1623
## 长期
1724

1825
- 搓一个 counter
1926
- 重新设计 logo
20-
- 图片懒加载用 ThumbHash / BlurHash(考虑改成一个 API)
2127
- 搓一个评论系统(考虑使用 Serverless)
2228
- Status 页面(如果有了后端)
2329
- CDN

0 commit comments

Comments
 (0)