generated from timlrx/tailwind-nextjs-starter-blog
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: additional about page for extra authors
- Loading branch information
1 parent
dd2c190
commit 23749bc
Showing
15 changed files
with
109 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Authors, allAuthors } from 'contentlayer/generated' | ||
import { MDXLayoutRenderer } from 'pliny/mdx-components' | ||
import AuthorLayout from '@/layouts/AuthorLayout' | ||
import { coreContent } from 'pliny/utils/contentlayer' | ||
|
||
export const generateStaticParams = async () => { | ||
const paths = allAuthors.map((p) => ({ author: p.slug.split('/') })) | ||
return paths | ||
} | ||
|
||
export default async function Page({ params }: { params: { author: string[] } }) { | ||
const locale = params.author[0] | ||
const name = params.author[1] | ||
|
||
const authorPage = allAuthors.find((p) => p.slug === `${locale}/${name}`) as Authors | ||
const mainContent = coreContent(authorPage) | ||
|
||
return ( | ||
<> | ||
<AuthorLayout content={mainContent}> | ||
<MDXLayoutRenderer code={authorPage.body.code} /> | ||
</AuthorLayout> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
{ | ||
"chinese": 1, | ||
"english": 4, | ||
"guide": 4, | ||
"landscape": 1, | ||
"linux": 2, | ||
"note": 3, | ||
"photos": 1, | ||
"react": 1, | ||
"tailwind": 1, | ||
"travel": 1, | ||
"wsl": 1 | ||
} | ||
{"chinese":1,"english":4,"guide":4,"landscape":1,"linux":2,"note":3,"photos":1,"react":1,"tailwind":1,"travel":1,"wsl":1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Azuki | ||
avatar: /static/images/about/azuki/avatar.jpg | ||
occupation: Metaverse Indigene | ||
--- | ||
|
||
# | ||
|
||
💜 Hi, My name is Azuki, the **_First_** member of the Azur Family! | ||
|
||
- Birthday: April 24th | ||
- Sex: Female | ||
- Age: <s>How rude!<s>20</s></s> | ||
- Hobby: Art, Books, Cosplay, Video Games | ||
- Favourites | ||
- Food: Tiramisu 🍰 | ||
- Drink: Americano ☕ | ||
- Anime: Sousou no Frieren - Beyond Journey's End ✨ | ||
- Animal: Sharks 🦈 | ||
|
||
--- | ||
|
||
# Recent Posts | ||
|
||
<div className="flex grid grid-cols-2 gap-8"> | ||
<img src="/static/gallary/art/ai/azuki/atAquarium.jpeg" className="block rounded" /> | ||
<img src="/static/gallary/art/ai/azuki/atCaffe.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/lend_a_hand.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/closeup.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/charming_smile.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/purple_jacket.jpeg" className="block" /> | ||
</div> | ||
|
||
--- | ||
|
||
# Back in School Days | ||
|
||
<div className="flex grid grid-cols-2 gap-8"> | ||
<img src="/static/gallary/art/ai/azuki/library.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/library2.jpeg" className="block" /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: 梓芸 | ||
avatar: /static/images/about/azuki/avatar.jpg | ||
occupation: 元宇宙原住民 | ||
--- | ||
|
||
# | ||
|
||
💜 哈喽,我叫梓芸(あずき),是阿梓大家庭的第一位成员哦,请多指教! | ||
|
||
- 生日: 四月24号 | ||
- 性别: 女 | ||
- 年龄: <s>你礼貌吗?<s>20</s></s> | ||
- 兴趣: 艺术, 读书, Cosplay, 打游戏 | ||
- 爱好 | ||
- 食物: 提拉米苏 🍰 | ||
- 饮品: 美式咖啡 ☕ | ||
- 动漫: 葬送的芙莉莲 ✨ | ||
- 动物: 鲨鱼 🦈 | ||
|
||
--- | ||
|
||
# 近照 | ||
|
||
<div className="flex grid grid-cols-2 gap-8"> | ||
<img src="/static/gallary/art/ai/azuki/atAquarium.jpeg" className="block rounded" /> | ||
<img src="/static/gallary/art/ai/azuki/atCaffe.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/lend_a_hand.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/closeup.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/charming_smile.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/purple_jacket.jpeg" className="block" /> | ||
</div> | ||
|
||
--- | ||
|
||
# 校园时光 | ||
|
||
<div className="flex grid grid-cols-2 gap-8"> | ||
<img src="/static/gallary/art/ai/azuki/library.jpeg" className="block" /> | ||
<img src="/static/gallary/art/ai/azuki/library2.jpeg" className="block" /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.