Commit graph hackertours-theme/layouts/shortcodes/figure.html
Author SHA1 Message Date
Fredrik Jonsson
dc538ae451 MAke it possible to set empty alt attribute on figure, img and svg shortcodes. Do not use h4 for caption title in figure, use strong instead. 2023-01-15 11:52:20 +01:00
Fredrik Jonsson
7df8e982ab
Improve shortcodes to support page resources (#68) 2023-01-05 09:19:56 +01:00
Fredrik Jonsson
56d3c30a98 Replace use of add with path.Join for buildig paths. 2022-07-19 14:56:32 +02:00
Fredrik Jonsson
3737d5874c Replace .Site.x and $.Site.x with site.x. 2022-01-24 08:03:42 +01:00
Fredrik Jonsson
a292f0f9fe Add srcset support to figure and img shortcodes. 2021-06-23 10:17:53 +02:00
Fredrik Jonsson
46595e5ae9 Added new file shortcode and added better checks in figure and img shortcodes. 2020-11-23 11:08:12 +01:00
Fredrik Jonsson
0848b49f3f Improved figure and img shortcodes that handle images in both /static and /assets. New size attribute activates image resizing. 2020-11-16 13:08:44 +01:00
Takashi Kato
71f50d5b40
Remove extra space
Encountered an issue https://github.com/frjo/hugo-theme-zen/issues/16.
Per forum, this may help an error. https://discourse.gohugo.io/t/error-with-template-illegal-number-syntax/21148/4
2020-06-16 21:14:43 +09:00
Fredrik Jonsson
474796c204 Make the figure shortcode work with images not in static. 2020-04-20 20:43:51 +02:00
Fredrik Jonsson
6b0f3caf6c Do not use scratch in figure shortcode anymore, set variables the new improved go template way. 2020-01-03 11:28:24 +01:00
Fredrik Jonsson
9d40eac2d6 A first attempt at supporting podcasts. iTunes RSS feed, layouts, parameters etc. included. 2019-05-13 09:08:29 +02:00
Fredrik Jonsson
73795756ac Improved figure shortcode, no -1px round of errors. 2018-09-08 19:34:29 +02:00
Fredrik Jonsson
f53567394e More i18n strings and code style fixes. 2018-03-01 14:30:56 +01:00
Fredrik Jonsson
73cc0bfc89 Make use of proper relURL everywhere so site works in sub directory. Fix for setting custom height in figure shortcode. 2017-11-24 11:39:58 +01:00
Fredrik Jonsson
6b9f48cfc0 Makes use of imageConfig in custom figure.html template. 2017-05-22 18:04:02 +02:00
Fredrik Jonsson
511cd74910 Custom shortcode for figure, claning up whitespace. More custom stuff to come. 2017-05-21 23:36:32 +02:00