-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import "../../../types.ts"; | ||
|
||
export const title = "mdx filter example"; | ||
export default async (data: Lume.Data, { mdx }: Lume.Helpers) => | ||
await mdx( | ||
` | ||
--- | ||
title: Hello world | ||
description: This is a description | ||
--- | ||
import Image from "./_includes/Image.tsx"; | ||
<comp.Header title={title} description={description}/> | ||
## Hello world | ||
This is a markdown file with the title **{ title }**. | ||
<Image alt="foo" /> | ||
`, | ||
{ | ||
...data, | ||
title: "Hello world", | ||
description: "This is a description", | ||
}, | ||
); |