summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
AgeCommit message (Collapse)Author
2022-09-10add fixedWith for image-size-controlReorx
2022-09-06add shortcode tweet-ref for creating tweet reference in footnotesReorx
2022-08-11use height instead of max-height to control img size on parent divReorx
this change happens on both image-size-control and figure-img-size
2022-07-01add figure-img-size shortcodeReorx
for controlling image size with <figure>
2022-06-02update render-image to support video embedReorx
just like embed an image, use ![](/path/to/video.mov)
2022-06-01fix shortcodes rendering markdown imgReorx
replace markdownify with .Page.RenderString, the latter trigger render hook properly see: https://gohugo.io/functions/markdownify/#readout > Note: if you need Render Hooks, which markdownify doesn’t currently support, use .RenderString instead.
2022-05-27use max-width, max-height for image-size-controlReorx
2022-05-27add figure-img shortcodeReorx
2022-05-18refactor social-quote-tweet and social_links to use social_quote_tweet partialReorx
2022-05-18new shortcode: social-quote-tweet; enhance h2, h3 marginReorx
2022-05-15add link shortcodeReorx
2022-05-12add standout shortcodeReorx
2022-05-05add image-size-control shortcodeReorx
2022-05-05enhance collapse shortcodeReorx
2022-04-21enhance responsive styleReorx
2022-04-21add video shortcodeReorx
2021-09-17collapse shortcode content can write formative code and change line (#561)drizzle
2021-03-22Add support for `rtl` and `ltr` shortcodes (#293)Mohammad Noor Abu Khleif
refer https://github.com/adityatelange/hugo-PaperMod/pull/293#issue-585979395 for usage guide and examples
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
2020-08-23Added shortcode for collapsing texts.jtagcat
2020-07-24add blockquote as shortcodeparsiya
2020-07-24add shortcode to Insert Raw HTMLAditya Telange
{{< rawhtml >}} <p class="someclass"> This is <strong>raw HTML</strong>, inside Markdown. </p> {{< /rawhtml >}} credits : https://anaulin.org/blog/hugo-raw-html-shortcode/