File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,16 +9,14 @@ import { categories } from "../content/libraries/config";
99
1010interface Props {
1111 entries: CollectionEntry <" libraries" >[];
12- page: CollectionEntry <" pages" >;
1312 title: string ;
1413}
1514type LibraryEntry = CollectionEntry <" libraries" >;
1615
1716const currentLocale = getCurrentLocale (Astro .url .pathname );
1817const t = await getUiTranslator (currentLocale );
1918
20- const { entries, page } = Astro .props ;
21- const { Content } = await page .render ();
19+ const { entries } = Astro .props ;
2220
2321function strCompare(a : string , b : string ) {
2422 if (a < b ) {
@@ -62,10 +60,6 @@ setJumpToState({
6260 variant =" item"
6361 topic =" community"
6462>
65- <div class =" rendered-markdown" >
66- <Content />
67- </div >
68-
6963 {
7064 sections .map (({ slug , name , sectionEntries }) => (
7165 <section >
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { getCollectionInDefaultLocale } from "../_utils";
33import LibrariesLayout from " @/src/layouts/LibrariesLayout.astro" ;
44
55const libraries = await getCollectionInDefaultLocale (" libraries" );
6- const pages = await getCollectionInDefaultLocale (" pages" );
7- const page = pages .find ((page ) => page .slug === ' libraries' )!
86---
97
10- <LibrariesLayout title =" Libraries" entries ={ libraries } page = { page } />
8+ <LibrariesLayout title =" Libraries" entries ={ libraries } />
You can’t perform that action at this time.
0 commit comments