File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { CollectionEntry } from "astro:content";
33import Head from " @components/Head/index.astro" ;
44import BaseLayout from " ./BaseLayout.astro" ;
55import Image from " @components/Image/index.astro" ;
6+ import FreeRatioImage from " @components/Image/FreeRatioImage.astro" ;
67import RelatedItems from " @components/RelatedItems/index.astro" ;
78import { setJumpToState } from " ../globals/state" ;
89import { getCurrentLocale , getUiTranslator } from " ../i18n/utils" ;
@@ -14,7 +15,7 @@ interface Props {
1415}
1516
1617const { entry, title } = Astro .props ;
17- const { Content } = await entry .render ();
18+ const { Content, components } = await entry .render ();
1819
1920setJumpToState (null );
2021
@@ -52,7 +53,12 @@ const relatedEvents =
5253 )
5354 }
5455 <div class =" rendered-markdown" >
55- <Content />
56+ <Content
57+ components ={ {
58+ ... components ,
59+ img: FreeRatioImage ,
60+ }}
61+ />
5662 </div >
5763
5864 {
You can’t perform that action at this time.
0 commit comments