File tree Expand file tree Collapse file tree 4 files changed +7
-17
lines changed Expand file tree Collapse file tree 4 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ setJumpToState({
67
67
}
68
68
</ul >
69
69
<div class =" content-grid-simple" >
70
- <LinkButton url =" /sketches" variant =" link" class =" mt-lg col-span-1 w-full"
70
+ <LinkButton url =" /sketches/ " variant =" link" class =" mt-lg col-span-1 w-full"
71
71
>{ t (" All Sketches" )} </LinkButton
72
72
>
73
73
</div >
@@ -86,7 +86,7 @@ setJumpToState({
86
86
</ul >
87
87
<div class =" content-grid-simple" >
88
88
<LinkButton
89
- url =" /libraries"
89
+ url =" /libraries/ "
90
90
variant =" link"
91
91
class =" mt-lg col-span-1 w-full" >{ t (" All Libraries" )} </LinkButton
92
92
>
@@ -112,7 +112,7 @@ setJumpToState({
112
112
}
113
113
</ul >
114
114
<div class =" content-grid-simple" >
115
- <LinkButton url =" /events" variant =" link" class =" mt-lg col-span-1 w-full"
115
+ <LinkButton url =" /events/ " variant =" link" class =" mt-lg col-span-1 w-full"
116
116
>{ t (" All Events" )} </LinkButton
117
117
>
118
118
</div >
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 @@ -10,15 +10,13 @@ export async function getStaticPaths() {
10
10
},
11
11
props: {
12
12
entries: await getCollectionInLocaleWithFallbacks (" libraries" , locale ),
13
- pages: await getCollectionInLocaleWithFallbacks (" pages" , locale ),
14
13
},
15
14
}));
16
15
17
16
return await Promise .all (pages );
18
17
}
19
18
20
- const { entries, pages } = Astro .props ;
21
- const page = pages .find ((page ) => page .slug === ' libraries' )!
19
+ const { entries } = Astro .props ;
22
20
---
23
21
24
- <LibrariesLayout title =" Libraries" entries ={ entries } page = { page } />
22
+ <LibrariesLayout title =" Libraries" entries ={ entries } />
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