Hi,
I am investigating static blog site generators for one that supports the following scenario.
I write code for my blog posts using a form of literate programming by adding markdown text as comments to my code (i.e. https://github.com/lucabol/LNativeMemory/blob/master/LNativeMemory/GC2.cs). I then have a converter program that take the code file as input and generates correct markdown that I then copy and paste as a blog post.
I am looking to optimise my workflow even more, by having each one of my blog posts to be just a front matter containing the link to the github code file. By seeing this front matter (or the file extension or whatever else), the framework would call my own function to convert it to markdown and generate the correct html. This is superior to my current workflow as any change to the code file is automatically reflected in a change to the blog post every time I recompile the site.
In summary, is there a way to insert your own Go function in the content rendering pipeline to pre-process a user defined content type?