Skip to content

Commit

Permalink
add tag page in search
Browse files Browse the repository at this point in the history
  • Loading branch information
Vahor committed Apr 28, 2024
1 parent 13313e7 commit 117a617
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/tag/[tag]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function TagPage({ params }: PageProps) {
<h1 className="text-3xl font-semibold text-black dark:text-white capitalize">
{params.tag}
</h1>
<ul className="divide-y space-y-4">
<ul className="divide-y space-y-4 mt-6">
{filteredPosts.map((post) => (
<li key={post.url}>
<PostEntry post={post} />
Expand Down
7 changes: 7 additions & 0 deletions src/lib/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ const search_content = [
pageType: "app",
external: false,
})),
{
title: "Liste des articles",
datePublished: env.NEXT_PUBLIC_BUILD_TIME,
url: "/tag/project",
pageType: "app",
external: false,
},
...contact_links.map((l) => ({
title: l.label,
datePublished: env.NEXT_PUBLIC_BUILD_TIME,
Expand Down

0 comments on commit 117a617

Please sign in to comment.