-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 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,24 @@ | ||
import React from 'react'; | ||
import type { Metadata } from 'next'; | ||
import { getConfig } from '@/services/getConfig'; | ||
|
||
const config = getConfig(); | ||
|
||
export const metadata: Metadata = { | ||
title: `Friends - ${config.title}`, | ||
description: `Friends page of ${config.title} - ${config.description}`, | ||
openGraph: { | ||
title: `Friends - ${config.title}`, | ||
description: `Friends page of ${config.title} - ${config.description}`, | ||
type: 'website', | ||
locale: config.lang, | ||
}, | ||
}; | ||
|
||
export default function FriendsLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return <>{children}</>; | ||
} |
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,11 @@ | ||
import { getPostData } from '@/services/posts'; | ||
import { PostData } from '@/types'; | ||
import PostLayout from '@/components/layout/PostLayout'; | ||
import { getConfig } from '@/services/getConfig'; | ||
|
||
export default async function FriendsPage() { | ||
const post: PostData = await getPostData('Friends', 'Friends'); | ||
const config = getConfig(); | ||
|
||
return <PostLayout post={post} showThumbnail={config.thumbnailFriends} />; | ||
} |
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
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,29 @@ | ||
--- | ||
title: '' | ||
thumbnail: '' # (Optional) You can put your personal about thumbnail | ||
showComments: false # Set whether you want have comment for this page | ||
--- | ||
|
||
## 我的项目 | ||
|
||
## 友情链接 | ||
|
||
> 下面全是大佬!!!同样也都是朋友~~~ | ||
## 添加友链 | ||
|
||
可以直接在下面评论区,使用如下格式留言,方便我复制粘贴。 | ||
只要我在你的页面中看到了我的链接且你的链接没有问题,我会第一时间添加! | ||
|
||
```json | ||
{ | ||
"title": "ZLA小站", | ||
"link": "https://www.zla.pub/", | ||
"img": "https://cdn.v2ex.com/gravatar/cba8b28739dd6225f6fe961762bdb0b71b858d68c83d946a37cee3b0e0daece5?size=512", | ||
"des": "不要哭,不要笑,不要恨,要理解。" | ||
} | ||
``` | ||
|
||
需要更新头像或者链接请留言,有时间会处理的。若没有及时处理请给我发邮件催一下,邮箱是zl at zla dot moe。 | ||
|
||
</br></br></br></br> |
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