Skip to content

Don't try to render template, show it in source

Warren Gifford requested to merge jason-showtemplate into main

Created by: jyavorska

If you clicked on the release post blog template link, it would show a page with the following errors:

content error: run Markdown for handbook/product/product_management/release_blog_post_template.md: yaml: unmarshal errors:
  line 3: field author not found in type markdown.Metadata
  line 4: field publishDate not found in type markdown.Metadata
  line 6: field slug not found in type markdown.Metadata
  line 7: field heroImage not found in type markdown.Metadata
  line 8: field published not found in type markdown.Metadata

This was because it was trying to render it as a markdown page itself, instead of being an example. This takes you to a more useful place if you're trying to use the template.

Merge request reports

Loading