I am aware of this and use it extensively for other things. But, as far as I can tell, this only works with actual Hugo pages (e.g., markdown files with frontmatter). The “.Content” only works when the page is structured (as far as I can tell)
Maybe a different question is… how do I tell Hugo’s resources things to grab me files that are raw markdown. Because if I had a way to do that, I could use all of the cool resource mechanisms (e.g., the assets directory).
Assuming you were going to use assets directory and resources.GetMatch. In this case, front matter would be totally ignored (as the front matter, it would be necessary to use something like replaceRE to remove it) and markdownify would be necessary to render the content.
I still can’t think a good way to detect raw markdown files, sorry. (Oh, maybe I can do some tests with findRE or output formats, but that still would be limited.)