Partials with Markdown content

  • 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 the partialCached 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 the markdownify func.
3 Likes