fix: update code challenge (#6697)

This commit is contained in:
Ben Holmes 2023-03-28 15:09:59 -04:00 committed by GitHub
parent c0b7864a41
commit 5f71d1bbeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -20,9 +20,9 @@ This simple starter showcases Markdoc with Content Collections. All Markdoc feat
{% aside title="Code Challenge" type="tip" %} {% 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 %} {% if $revealSecret %}

View file

@ -9,7 +9,7 @@ const { Content } = await intro.render();
<Layout title={intro.data.title}> <Layout title={intro.data.title}>
<main> <main>
<h1>{intro.data.title}</h1> <h1>{intro.data.title}</h1>
<Content variables={{ revealSecret: true }} /> <Content />
</main> </main>
</Layout> </Layout>