-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Summary
Observed as part of #117 that when we had an example in the documentation that was demonstrating use of ${globalThis.page.title}
<html>
<head>
<title>My Blog - ${globalThis.page.title}</title>
<meta property="og:title" content="My Blog - ${globalThis.page.title}" />
</head>
<!-- ... -->
</html>Greenwood was (as designed) replacing that value, and so it comes out as a a literal null value right in the docs itself

What 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 this
<title>My Blog - $${globalThis.page.title}</title>but 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. 🤞
Metadata
Metadata
Assignees
Labels
Type
Projects
Status