fix: update code challenge (#6697)
This commit is contained in:
parent
c0b7864a41
commit
5f71d1bbeb
2 changed files with 3 additions and 3 deletions
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue