File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,14 @@ import { categories } from "../content/libraries/config";
9
9
10
10
interface Props {
11
11
entries: CollectionEntry <" libraries" >[];
12
- page: CollectionEntry <" pages" >;
13
12
title: string ;
14
13
}
15
14
type LibraryEntry = CollectionEntry <" libraries" >;
16
15
17
16
const currentLocale = getCurrentLocale (Astro .url .pathname );
18
17
const t = await getUiTranslator (currentLocale );
19
18
20
- const { entries, page } = Astro .props ;
21
- const { Content } = await page .render ();
19
+ const { entries } = Astro .props ;
22
20
23
21
function strCompare(a : string , b : string ) {
24
22
if (a < b ) {
@@ -62,10 +60,6 @@ setJumpToState({
62
60
variant =" item"
63
61
topic =" community"
64
62
>
65
- <div class =" rendered-markdown" >
66
- <Content />
67
- </div >
68
-
69
63
{
70
64
sections .map (({ slug , name , sectionEntries }) => (
71
65
<section >
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { getCollectionInDefaultLocale } from "../_utils";
3
3
import LibrariesLayout from " @/src/layouts/LibrariesLayout.astro" ;
4
4
5
5
const libraries = await getCollectionInDefaultLocale (" libraries" );
6
- const pages = await getCollectionInDefaultLocale (" pages" );
7
- const page = pages .find ((page ) => page .slug === ' libraries' )!
8
6
---
9
7
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