Skip to content

Commit

Permalink
10 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jiatianzhi committed Jan 22, 2024
1 parent 4562205 commit 6988220
Show file tree
Hide file tree
Showing 19 changed files with 82 additions and 15 deletions.
2 changes: 1 addition & 1 deletion data/projects.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const projects: Project[] = [
{
title: "Tianzhi Jia's Homepage",
title: "My Homepage",
description: '🦖 基于 Docusaurus 静态网站生成器实现个人主页',
preview: '/img/project/blog.png',
website: 'https://jiatianzhi.xyz',
Expand Down
2 changes: 1 addition & 1 deletion data/social.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const socialSet: Record<keyof Social, SocialValue> = {
color: '#C20C0C',
},
// rss: {
// href: '/blog/rss.xml',
// href: '/blogs/rss.xml',
// title: 'RSS',
// icon: 'ri:rss-line',
// color: '#FFA501',
Expand Down
19 changes: 19 additions & 0 deletions docs/notes/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
id: introduction
slug: /notes
title: Notes
keywords:
- 前端
- 后端
- Vue
- React
- JavaScript
- Typescript
- 逆向
- HTTP
- 算法
---

本页面为个人学习中所涉及相关技术栈的笔记汇总,包含但不限于

- PyTorch
1 change: 1 addition & 0 deletions docs/notes/pytorch/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# test
1 change: 1 addition & 0 deletions docs/notes/pytorch/test1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# test1
2 changes: 2 additions & 0 deletions docs/notes/pytorch/test2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# test2

2 changes: 2 additions & 0 deletions docs/notes/pytorch/test3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# test3

1 change: 1 addition & 0 deletions docs/notes/pytorch/test4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# test4
1 change: 1 addition & 0 deletions docs/notes/pytorch/test5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# test5
2 changes: 1 addition & 1 deletion docs/skill/docusaurus/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ Docusaurus 网站是一个 React 单页应用。 你可以像一般的 React 应

## 自定义页面

[归档](/blog/archive)[友链](/friends)[导航](/resources)[项目](/project)以及[关于我](/about)页面都在 `src/pages` 目录下定义,根据文件名映射对应路由。页面的创建可以查看 [创建页面 | Docusaurus](https://docusaurus.io/zh-CN/docs/creating-pages)
[归档](/blogs/archive)[友链](/friends)[导航](/resources)[项目](/project)以及[关于我](/about)页面都在 `src/pages` 目录下定义,根据文件名映射对应路由。页面的创建可以查看 [创建页面 | Docusaurus](https://docusaurus.io/zh-CN/docs/creating-pages)
2 changes: 1 addition & 1 deletion docs/skill/introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: introduction
slug: /skill
title: Notes
title: Skills
keywords:
- 前端
- 后端
Expand Down
14 changes: 10 additions & 4 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,19 @@ const config: Config = {
{
label: 'Notes',
position: 'right',
to: 'docs/skill',
to: 'docs/notes',
items: [
{ label: 'Skills', to: 'docs/skill' },
{ label: 'Tools', to: 'docs/tools' },
],
},
{
label: 'Blogs',
position: 'right',
to: 'blog',
items: [
{ label: 'Archive', to: 'blog/archive' },
],
},
{
label: 'Projects',
Expand All @@ -73,10 +80,9 @@ const config: Config = {
label: 'More',
position: 'right',
items: [
{ label: 'Archive', to: 'blog/archive' },
{ label: 'About Me', to: '/about' },
{ label: 'Friends', to: 'friends' },
{ label: 'Links', to: 'resources' },
{ label: 'Recommended Tools', to: 'docs/tools' },
],
},
{
Expand All @@ -91,7 +97,7 @@ const config: Config = {
{
title: 'Study',
items: [
{ label: 'Notes', to: 'docs/skill' },
{ label: 'Notes', to: 'docs/notes' },
{ label: 'Blogs', to: 'blog' },
{ label: 'Archive', to: 'blog/archive' },
{ label: 'Projects', to: 'project' },
Expand Down
9 changes: 8 additions & 1 deletion i18n/en/docusaurus-plugin-content-pages/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ import social from '@site/data/social'

------

![个人头像](https://jiatianzhi.xyz/img/logo.png)
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
<img
src="https://jiatianzhi.xyz/img/logo.png"
alt="Kitten"
title="A cute kitten"
style={{ width: '100px', height: '100px', borderRadius: '50%' }}
/>
</div>

## 🧑 About Me

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "blog",
"name": "blogs",
"version": "3.0.0",
"author": {
"url": "https://github.com/kuizuo",
"email": "[email protected]",
"name": "Kuizuo"
},
"repository": {
"url": "https://github.com/kuizuo/blog",
"url": "https://github.com/kuizuo/blogs",
"type": "git"
},
"homepage": "https://kuizuo.cn",
Expand Down
18 changes: 18 additions & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,24 @@ const sidebars: SidebarsConfig = {
'tools/vite-plugin',
'tools/jetbrains-product-activation-method',
],
notes: [
'notes/introduction',
{
label: 'PyTorch',
type: 'category',
link: {
type: 'doc',
id: 'notes/pytorch/test',
},
items: [
'notes/pytorch/test1',
'notes/pytorch/test2',
'notes/pytorch/test3',
'notes/pytorch/test4',
'notes/pytorch/test5',
],
},
],
}

module.exports = sidebars
4 changes: 2 additions & 2 deletions src/components/UserCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export default function UserCard({ isNavbar = false }: { isNavbar?: boolean }) {
</div>
<div className={styles.bio}>{bio}</div>
<div className={styles.num}>
<Link className={styles.numItem} href="/blog/archive">
<Link className={styles.numItem} href="/blogs/archive">
<Icon icon="carbon:blog" width="20" height="20" />
{count.blog}
</Link>
<Link className={styles.numItem} href="/blog/tags">
<Link className={styles.numItem} href="/blogs/tags">
<Icon icon="ri:price-tag-3-line" width="20" height="20" />
{count.tag}
</Link>
Expand Down
11 changes: 10 additions & 1 deletion src/pages/about.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: about
title: About
description: 愧怍的自我介绍
description: 贾添植的自我介绍
hide_table_of_contents: true
---

Expand All @@ -13,6 +13,15 @@ import social from '@site/data/social'

------

<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
<img
src="https://jiatianzhi.xyz/img/logo.png"
alt="Kitten"
title="A cute kitten"
style={{ width: '100px', height: '100px', borderRadius: '50%' }}
/>
</div>

## 🧑 About Me

------
Expand Down
2 changes: 1 addition & 1 deletion src/pages/friends/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function FriendHeader() {
<h1>{TITLE}</h1>
<p>{DESCRIPTION}</p>
<a className="button button--primary" href={ADD_FRIEND_URL} target="_blank" rel="noreferrer">
🔗 申请友链
🔗 Link Exchange
</a>
</section>
)
Expand Down
Binary file modified static/img/project/blog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6988220

Please sign in to comment.