Skip to content

Commit

Permalink
fix: update code challenge (withastro#6697)
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev authored Mar 28, 2023
1 parent c0b7864 commit 5f71d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/with-markdoc/src/content/docs/intro.mdoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ This simple starter showcases Markdoc with Content Collections. All Markdoc feat

{% aside title="Code Challenge" type="tip" %}

Reveal the secret message below by adding `revealSecret: true` to your list of Markdoc variables.
Reveal the secret message below by adding `revealSecret` to your list of Markdoc variables.

_Hint: Try [adding a `variables` object](https://markdoc.dev/docs/variables#global-variables) to your Markdoc config. Check the `astro.config.mjs`._
_Hint: Try passing as a prop to the `<Content />` component in the `src/pages/index.astro` file._

{% if $revealSecret %}

Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdoc/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { Content } = await intro.render();
<Layout title={intro.data.title}>
<main>
<h1>{intro.data.title}</h1>
<Content variables={{ revealSecret: true }} />
<Content />
</main>
</Layout>

Expand Down

0 comments on commit 5f71d1b

Please sign in to comment.