- If this is markdown file not also present as content pages, you could use the
readFile "myfile.md" | markdownify
– but I would then recommend using thepartialCached
func. - If this is existing pages, I have just updated (i.e. not released yet) the
GetPage
func to also handle regular pages, so in the next Hugo (or the current development version), you could do `{{ (.Site.GetPage “blog/funny-post.md”).Content }}`` - Then there is also the
/data
files, which also can be sent into themarkdownify
func.
3 Likes