diff options
-rw-r--r-- | examples/with-markdoc/src/content/docs/intro.mdoc | 4 | ||||
-rw-r--r-- | examples/with-markdoc/src/pages/index.astro | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/with-markdoc/src/content/docs/intro.mdoc b/examples/with-markdoc/src/content/docs/intro.mdoc index da987d9ec..c8fcf5675 100644 --- a/examples/with-markdoc/src/content/docs/intro.mdoc +++ b/examples/with-markdoc/src/content/docs/intro.mdoc @@ -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 %} diff --git a/examples/with-markdoc/src/pages/index.astro b/examples/with-markdoc/src/pages/index.astro index 7efcbeda8..d7b41e50f 100644 --- a/examples/with-markdoc/src/pages/index.astro +++ b/examples/with-markdoc/src/pages/index.astro @@ -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> |