Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 0 additions & 242 deletions website/src/components/Modal.astro

This file was deleted.

8 changes: 2 additions & 6 deletions website/src/integrations/pagefind-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ const TYPE_PAGES: Record<string, string> = {
};

// Resource types that have a dedicated detail page at /<type>/<id>/. Search
// results for these should deep-link to the canonical detail page rather than
// the listing page with an inert #file= hash (listing pages no longer open a
// modal from that hash).
// results for these should deep-link to the canonical detail page.
const DETAIL_ROUTE_TYPES = new Set([
"agent",
"instruction",
Expand Down Expand Up @@ -118,9 +116,7 @@ export default function pagefindResources(): AstroIntegration {

const url = hasDetailPage
? `${base}${record.type}/${encodeURIComponent(record.id)}/`
: `${base}${typePage.slice(1)}#file=${encodeURIComponent(
record.path
)}`;
: `${base}${typePage.slice(1)}`;
const typeLabel = TYPE_LABELS[record.type] || record.type;

const addResult = await index.addCustomRecord({
Expand Down
3 changes: 0 additions & 3 deletions website/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
import Modal from "../components/Modal.astro";
import Icon from "../components/Icon.astro";
import BackToTop from "../components/BackToTop.astro";

Expand Down Expand Up @@ -177,8 +176,6 @@ const base = import.meta.env.BASE_URL;
</section>
</div>

<Modal />

<!-- Back to Top Button -->
<BackToTop />

Expand Down
Loading
Loading