summaryrefslogtreecommitdiffstatshomepage
path: root/templates/shortcodes/img.html (unfollow)
Commit message (Collapse)AuthorLines
2021-08-09templates: Render markdown in img's figcaptionWolfgang Müller-1/+1
The img shortcode inserts, along the picture itself, a figcaption element containing a brief description. We may want to include links or other HTML elements in that description. This is not possible right now because we insert the caption content verbatim. This commit changes the img shortcode such that markdown is now rendered inline for the figcaption element.
2021-07-03templates: Allow passing format to img shortcodeWolfgang Müller-1/+1
Sometimes we may want to override the default setting when processing images. Furthermore, since we will most likely want to generate JPG files in the general case in order to minimise the amount of data transferred when opening the front page, have the default in the shortcode be "jpg" instead of "auto".