Skip to content

Commit 8ca53fe

Browse files
committed
feat: integrate Navbar to [alpha]/[page] pagination route
1 parent 6e8aa8e commit 8ca53fe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/pages/browse/[alpha]/[page].astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
import { getCollection } from "astro:content";
33
import { ALPHABETS } from "../../../../constants.js";
44
import BaseLayout from "../../../layouts/base.astro";
5+
import Navbar from "../../../components/navbar.astro";
6+
import Search from "../../../components/islands/search";
57
68
const { page } = Astro.props;
79
const params = Astro.params;
810
11+
const dictionary = await getCollection("dictionary");
12+
913
export const prerender = true;
1014
1115
export async function getStaticPaths({ paginate }) {
@@ -23,6 +27,10 @@ export async function getStaticPaths({ paginate }) {
2327
---
2428

2529
<BaseLayout>
30+
<Navbar>
31+
<Search triggerSize="sm" dictionary={dictionary} client:load />
32+
</Navbar>
33+
2634
<main class="max-w-screen-lg p-5 md:mt-10 mx-auto min-h-screen space-y-6">
2735
<h1 class="text-3xl md:text-5xl font-black">
2836
Browse: Letter { params.alpha.toUpperCase() }

0 commit comments

Comments
 (0)