In order to get the old wordpress posts image gallery to work (like CPH:Triathlon) I decided to take on some shortcodes. They look very much Jinja Macros which I know from my $dayjob - which might turn out to be a bit confusing. In essence my plan was to avoid too much boilerplate. At first i tried generalizing the wordpress markup into a shortcode but I found it a bit hard to get working.
So, years ago, Morten, provided me with a makefile and som m4 macros stuff and I played around with that for generating the pages for this blog back in the day. Then I switched back and forth between engines, and settled on wordpress for the last many years. But now Morten mentioned Hugo. I get the feeling that one of his hobbies is changing his blog-engine ;) That being said, who am I to talk?