Skip to content

Commit 589ba09

Browse files
authored
Merge branch 'main' into main
2 parents 9776368 + 419e9a6 commit 589ba09

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Looking for a Remix-run alternative? Check out the unofficial [Tailwind Remix-ru
3535
- [enscribe.dev](https://enscribe.dev) - enscribe's personal blog; cybersecurity shenanigans, frontend webdev, etc. ([source code](https://github.com/jktrn/enscribe.dev))
3636
- [dalelarroder.com](https://dalelarroder.com) - Dale Larroder's personal website upgraded from V1 ([source code](https://github.com/dlarroder/dalelarroder))
3737
- [thetalhatahir.com](https://www.thetalhatahir.com) - Talha Tahir's personal blog. Added article thumbnails, linkedIn card, Beautiful hero content, technology emoticons.
38+
- [hauhau.cn](https://www.hauhau.cn) - Homing's personal blog about the stuff he's learning ([source code](https://github.com/hominsu/blog))
3839

3940

4041
Using the template? Feel free to create a PR and add your blog to this list.

app/blog/[...slug]/page.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import PostLayout from '@/layouts/PostLayout'
1212
import PostBanner from '@/layouts/PostBanner'
1313
import { Metadata } from 'next'
1414
import siteMetadata from '@/data/siteMetadata'
15+
import { notFound } from 'next/navigation'
1516

1617
const defaultLayout = 'PostLayout'
1718
const layouts = {
@@ -85,16 +86,7 @@ export default async function Page({ params }: { params: { slug: string[] } }) {
8586
const sortedCoreContents = allCoreContent(sortPosts(allBlogs))
8687
const postIndex = sortedCoreContents.findIndex((p) => p.slug === slug)
8788
if (postIndex === -1) {
88-
return (
89-
<div className="mt-24 text-center">
90-
<PageTitle>
91-
Under Construction{' '}
92-
<span role="img" aria-label="roadwork sign">
93-
🚧
94-
</span>
95-
</PageTitle>
96-
</div>
97-
)
89+
return notFound()
9890
}
9991

10092
const prev = sortedCoreContents[postIndex + 1]

0 commit comments

Comments
 (0)