Skip to content
Open
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
4 changes: 2 additions & 2 deletions components/content/embed.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReactNode } from "react";

interface EmbedProps {
children: ReactNode;
children?: ReactNode;
src: string;
/** Added by `with-iframe-titles` mdx plugin. */
title?: string;
Expand All @@ -20,7 +20,7 @@ export function Embed(props: Readonly<EmbedProps>): ReactNode {
src={src}
title={title}
/>
<figcaption>{children}</figcaption>
{children != null && children !== "" ? <figcaption>{children}</figcaption> : null}
</figure>
);
}
4 changes: 2 additions & 2 deletions components/content/figure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface FigureProps {
/** @default "stretch" */
alignment?: FigureAlignment;
alt?: string;
children: ReactNode;
children?: ReactNode;
/** Maybe added by `with-image-sizes` mdx plugin. */
height?: number;
src: string;
Expand All @@ -22,7 +22,7 @@ export function Figure(props: Readonly<FigureProps>): ReactNode {
return (
<figure className={cn("flex flex-col", alignment === "center" ? "justify-center" : undefined)}>
<Image alt={alt} height={height} src={src} width={width} />
<figcaption>{children}</figcaption>
{children != null && children !== "" ? <figcaption>{children}</figcaption> : null}
</figure>
);
}
4 changes: 2 additions & 2 deletions components/content/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { VideoProvider } from "@/lib/content/options";
import { createVideoUrl } from "@/lib/navigation/create-video-url";

interface VideoProps {
children: ReactNode;
children?: ReactNode;
id: string;
provider: VideoProvider;
startTime?: number | null;
Expand All @@ -27,7 +27,7 @@ export function Video(props: Readonly<VideoProps>): ReactNode {
src={src}
title={title}
/>
<figcaption>{children}</figcaption>
{children != null && children !== "" ? <figcaption>{children}</figcaption> : null}
</figure>
);
}
5 changes: 5 additions & 0 deletions content/en/people/dariah-teach/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: DARIAH Teach
image: /assets/images/default-avatar.svg
social: []
---
Loading