Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Product_Name Param does not render in Killercoda #21

Open
Jayclifford345 opened this issue Jun 26, 2024 · 1 comment
Open

bug: Product_Name Param does not render in Killercoda #21

Jayclifford345 opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working transformer Issues for docs to killercoda tool

Comments

@Jayclifford345
Copy link
Collaborator

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

@Jayclifford345 Jayclifford345 added bug Something isn't working transformer Issues for docs to killercoda tool labels Jun 26, 2024
@jdbaldry
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working transformer Issues for docs to killercoda tool
Projects
None yet
Development

No branches or pull requests

2 participants