From 5f71d1bbebf950813c2af0ac2595d1684bb3dc6a Mon Sep 17 00:00:00 2001 From: Ben Holmes Date: Tue, 28 Mar 2023 15:09:59 -0400 Subject: [PATCH] fix: update code challenge (#6697) --- examples/with-markdoc/src/content/docs/intro.mdoc | 4 ++-- 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 `` 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();

{intro.data.title}

- +