Adding a view source link

in blog, english, programming

At the bottom of each of the blog posts I now have a See the source link. With hugo (and quite likely all other blog-enignes, what do I know?) this is pretty straight forward: Implementation For a site you can define global variables in config.toml and each Node, for example a post has both Frontmatter is available per “post”. All this is available in the templates which displays the content:

Lightbox Gallery Shortcodes

in English, hugo

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.