grafana / killercoda

This repository holds tutorials designed and hosted on Killercoda and interactive education platform.
https://killercoda.com/
Apache License 2.0
2 stars 4 forks source link

bug: Product_Name Param does not render in Killercoda #21

Open Jayclifford345 opened 1 week ago

Jayclifford345 commented 1 week ago

{{% param “PRODUCT_NAME” %}} doesn't expand when rendered through transformer (used pervasively in some docs repos like alloy where I'm testing)

jdbaldry commented 1 week ago

This will also need to support {{< param "<LOOKUP>" >}}.

The metadata for this lookup isn't guaranteed to be in the file. I think the tool will need an "inherited metadata" option to capture all that external source which can be cascading from parent topics: https://gohugo.io/content-management/front-matter/#cascade-field.

I think the algorithm would be:

  1. Look up <LOOKUP> in the page's front matter
  2. Look up <LOOKUP> in the inherited metadata option value
  3. Error if not found