RenderHook issue
This mini site demonstrates the RenderHook issue.
There are three pages:
- Yes
- RenderHook fires and image is styled with a Red border
- No
- RenderHook does NOT fire. Image is NOT styled with a Red border.
- Hack
- This page uses a simple hack to force the RenderHook to fire, and style the image with a Red border
Conclusion
- RenderHooks do work on Markdown within the
{{ .Content }}
page Variable. - RenderHools do NOT work on a Frontmatter value containing a Markdown String.
- You can force the Frontmatter values to render by placing the
{{ .Content }}
page variable above the call to {{ .Params.text | $.Page.RenderString }}
.
Gitab repo
Code can be found here