Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 增加作者页面 #501

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion annotation-setting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,19 @@ spec:
- $formkit: checkbox
name: toc
label: 自动生成目录
value: "true"
value: "true"

---

apiVersion: v1alpha1
kind: AnnotationSetting
metadata:
generateName: annotation-setting-
spec:
targetRef:
group: ""
kind: User
formSchema:
- $formkit: attachment
name: cover
label: 用户详情页封面图
2 changes: 2 additions & 0 deletions src/css/common/components/page-header.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@

&::before {
content: "{";
margin-right: 0.25em;
}

&::after {
content: "}";
margin-left: 0.25em;
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions src/css/theme/author/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.author-header {
& .page-header {
& .pattern-title {
display: flex;
align-items: center;

& h1 {
display: inline-block;
font-size: 25px;
font-weight: 400;
width: auto;
}
}
}
}
1 change: 1 addition & 0 deletions src/css/theme/author/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "header.css";
1 change: 0 additions & 1 deletion src/css/theme/category/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
display: inline-block;
font-size: 25px;
font-weight: 400;
color: #666;
width: auto;

&::before {
Expand Down
2 changes: 2 additions & 0 deletions src/css/theme/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@

@import "photos";

@import "author";

@import "error";
5 changes: 4 additions & 1 deletion src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
"title": "There is nothing here!",
"search": "Didn't find what you want, look at the other ones.",
"notfound": "We didn't seem to find what you want. Maybe you can search for it."
},
"author": {
"title": "About the Author: {{ authorName }}"
}
},
"comment": {
Expand Down Expand Up @@ -161,4 +164,4 @@
},
"copy_code": "Copy code"
}
}
}
5 changes: 4 additions & 1 deletion src/languages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
"title": "何も見つからない!(つд⊂)",
"search": "期待するものが見つからない。他に見てご覧?(๑ŏ _ ŏ๑)",
"notfound": "期待するものが見つからなかったらしい。検索してみる。( ˶ˊᵕˋ)੭♡"
},
"author": {
"title": "作者について:{{ authorName }}"
}
},
"comment": {
Expand Down Expand Up @@ -151,4 +154,4 @@
},
"copy_code": "コードをコピー"
}
}
}
5 changes: 4 additions & 1 deletion src/languages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
"title": "没有找到任何东西!",
"search": "没有找到你想要的,看看其他的吧。",
"notfound": "我们似乎没有找到你想要的东西. 或许你可以搜索一下试试。"
},
"author": {
"title": "关于作者: {{ authorName }}"
}
},
"comment": {
Expand Down Expand Up @@ -151,4 +154,4 @@
},
"copy_code": "复制代码"
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading