summaryrefslogtreecommitdiffstatshomepage
path: root/templates/shortcodes (follow)
Commit message (Collapse)AuthorAgeLines
* templates: Allow specifying widths for images in the 'img' shortcodeWolfgang Müller2022-04-09-1/+1
| | | | | | | An upcoming post will require a smaller figure which has text flowing around it. This is not nicely possible with the hard-coded setting of 500 pixels. Introduce an optional argument 'width' to the shortcode to make custom sizes possible.
* Update image template functions for zola 0.14.0Wolfgang Müller2022-02-06-1/+2
| | | | | | | The 'resize_image' function was changed to return a map in [1], so we have to update our code accordingly. [1] https://github.com/getzola/zola/commit/7fb99eaa44f387fadf744354c605f0cfcc582800
* templates: Render markdown in img's figcaptionWolfgang Müller2021-08-09-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.
* templates: Have the 'ref' shortcode use a.internalWolfgang Müller2021-07-25-1/+1
| | | | | | Added in the previous commit, this class renders a link more subtly and is supposed to be used when referencing internal content. We do exactly this here.
* templates: Allow passing format to img shortcodeWolfgang Müller2021-07-03-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".
* Initial commitWolfgang Müller2021-06-12-0/+10