forked from wishonia/wishonia
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tag-based article filtering and new tag page
Expanded article search to include filtering by tags. Introduced a new page for viewing articles under specific tags. Updated article grid to link to the new tag-specific pages.
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 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,20 @@ | ||
'use client' | ||
|
||
import { useParams } from 'next/navigation' | ||
import ArticleSearchAndGrid from "@/components/article/ArticleSearchAndGrid"; | ||
|
||
type Params = { | ||
tagSlug: string | ||
} | ||
|
||
export default function TagArticles() { | ||
const params = useParams<Params>() | ||
const tagSlug = params?.tagSlug ?? '' | ||
|
||
return ( | ||
<div className="container mx-auto p-4"> | ||
<h1 className="text-3xl font-bold mb-6">Articles in {tagSlug}</h1> | ||
<ArticleSearchAndGrid tagSlug={tagSlug} /> | ||
</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
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