summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/figure.html
AgeCommit message (Collapse)Author
2021-03-16add browser-level lazy loadingAditya Telange
ref: https://web.dev/browser-level-image-lazy-loading/
2021-02-22Add 'align' option to figure shortcode (#256)Kian Kasad
Usage: {{< figure align=center src="image.jpg" >}} Parameter values: - 'center': align image and captions to center of page - anything else neglected * Appends "#center" to the image's URL in order to utilize existing CSS rules for centering images.
2020-12-15shortcodes: figure: don't use h4 tag in figure captions (#127)Kian Kasad
* avoiding h4 tags in figcaption elements * picked from https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/figure.html * figure.html is licensed under Apache License 2.0 and is part of https://github.com/gohugoio/hugo