cleaner solution for handling active frontmatter title examples on docs and guide pages displaying as null
#125
Labels
bug
Something isn't working
fast follow
Carryovers from the launch milestone
good first issue
Good for newcomers
Milestone
Summary
Observed as part of #117 that when we had an example in the documentation that was demonstrating use of
${globalThis.page.title}
Greenwood was (as designed) replacing that value, and so it comes out as a a literal
null
value right in the docs itselfWhat we want is to leave the value alone
Current pages impacted
/docs/content-as-data/active-frontmatter/#usage
/guides/getting-started/going-further/#content-as-data
Details
As can be seen in the last screenshot above, an interim solution was put in place that was basically just creating a Greenwood plugin to match on the couple of instances this was happening for in our docs, and put the value back.
I had hoped that maybe I could have used an escape sequence, like for the
$
to "trick" Greenwood into not matching on thisbut all the entities stay as their literal values 😞
Not sure if there is a nicer way to fix this through some cool markdown trick but would be nice to find out. 🤞
The text was updated successfully, but these errors were encountered: