ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.
MIT License
241 stars 44 forks source link

Does Fornax Support Shortcodes for Markdown? #93

Open bytesource opened 3 years ago

bytesource commented 3 years ago

Hi,

I'd like to ask if Fornax has some functionality akin to Hugo's shortcode system (https://gohugo.io/content-management/shortcodes/)?

These are snippets placed inside Markdown to call a custom function that outputs HTML. This way you can add anything to your Markdown sections and e.g. turn a normal image into an adaptive image using srset and different image sizes.

Cheers,

Stefan

bytesource commented 3 years ago

Is this the right place to ask these questions, or is there another preferred channel for this?

I'd like to dive a little deeper into Fornax, but certainly don't want to pollute the issue tracker along the way.

drewknab commented 3 years ago

Explicitly, no, although I don't think it would be terribly difficult to write a helper function to parse short codes as part of a generator.

I'm curious to try that out.

bytesource commented 3 years ago

Thanks, that's what I thought, but I wanted to make sure I hadn't overlooked anything.

I like the simplicity of Fornax that allows me to concentrate on the task at hand instead of having to learn several levels of abstractions first.