forked from CaliCastle/cali.so
-
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
1 parent
1bd4e7b
commit a672d82
Showing
7 changed files
with
39 additions
and
9 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 +1,44 @@ | ||
import Balancer from 'react-wrap-balancer' | ||
|
||
import { Container } from '~/components/ui/Container' | ||
|
||
import { BlogPosts } from './BlogPosts' | ||
|
||
const description = | ||
'写博客文章是我比较喜欢的沉淀分享方式,我希望能够把好用的技术知识传递给更多的人。我比较喜欢围绕着技术为主的话题,但是也会写一些非技术的话题,比如设计、创业、企业管理、生活随笔等等。' | ||
export const metadata = { | ||
title: '我的博客', | ||
description, | ||
openGraph: { | ||
title: '我的博客', | ||
description, | ||
}, | ||
twitter: { | ||
title: '我的博客', | ||
description, | ||
card: 'summary_large_image', | ||
}, | ||
} | ||
|
||
// TODO: add pagination or infinite scroll | ||
export default function BlogPage() { | ||
return ( | ||
<Container> | ||
<h1 className="mt-10">给我点时间开发一下...</h1> | ||
<Container className="mt-16 sm:mt-24"> | ||
<header className="max-w-2xl"> | ||
<h1 className="text-4xl font-bold tracking-tight text-zinc-800 dark:text-zinc-100 sm:text-5xl"> | ||
欢迎光临我的博客 | ||
</h1> | ||
<p className="mt-6 text-base text-zinc-600 dark:text-zinc-400"> | ||
<Balancer>{description}</Balancer> | ||
</p> | ||
</header> | ||
<div className="mt-16 grid grid-cols-1 gap-6 sm:mt-20 lg:grid-cols-2 lg:gap-8"> | ||
{/* @ts-expect-error Server Component */} | ||
<BlogPosts limit={20} /> | ||
</div> | ||
</Container> | ||
) | ||
} | ||
|
||
export const runtime = 'edge' | ||
export const revalidate = 60 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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