Commit Graph

23 Commits

Author SHA1 Message Date
Reorx 8d679ad58d add shortcode tweet-ref for creating tweet reference in footnotes 2022-09-06 01:43:08 +08:00
Reorx d88771adee use height instead of max-height to control img size on parent div
this change happens on both image-size-control and figure-img-size
2022-08-11 01:18:18 +08:00
Reorx 61452c190b add figure-img-size shortcode
for controlling image size with <figure>
2022-07-01 11:47:10 +08:00
Reorx a2a26eb189 update render-image to support video embed
just like embed an image, use ![](/path/to/video.mov)
2022-06-02 11:44:11 +08:00
Reorx 375281fd60 fix shortcodes rendering markdown img
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-06-01 16:21:06 +08:00
Reorx 9f8b0c3194 use max-width, max-height for image-size-control 2022-05-27 20:33:17 +08:00
Reorx b215127186 add figure-img shortcode 2022-05-27 01:24:34 +08:00
Reorx ecaf84c7c7 refactor social-quote-tweet and social_links to use social_quote_tweet partial 2022-05-18 14:24:29 +08:00
Reorx 7c253d3fee new shortcode: social-quote-tweet; enhance h2, h3 margin 2022-05-18 13:46:15 +08:00
Reorx e854a9d91e add link shortcode 2022-05-15 22:39:37 +08:00
Reorx 01ea8e8a8c add standout shortcode 2022-05-12 16:43:06 +08:00
Reorx cbba5c25bd add image-size-control shortcode 2022-05-05 16:49:21 +08:00
Reorx c369bd5b3f enhance collapse shortcode 2022-05-05 00:35:09 +08:00
Reorx 8c47961c41 enhance responsive style 2022-04-21 23:26:08 +08:00
Reorx 1d1bede075 add video shortcode 2022-04-21 19:06:05 +08:00
drizzle 8c2f997ab3
collapse shortcode content can write formative code and change line (#561) 2021-09-17 18:41:23 +05:30
Mohammad Noor Abu Khleif 80ad6ec2a3
Add support for `rtl` and `ltr` shortcodes (#293)
refer https://github.com/adityatelange/hugo-PaperMod/pull/293#issue-585979395 for usage guide and examples
2021-03-22 16:47:40 +05:30
Aditya Telange c353447d8e
add browser-level lazy loading
ref: https://web.dev/browser-level-image-lazy-loading/
2021-03-16 13:18:57 +05:30
Kian Kasad 14ebcdecf3
Add 'align' option to figure shortcode (#256)
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.
2021-02-22 11:24:43 +05:30
Kian Kasad f9236d92af
shortcodes: figure: don't use h4 tag in figure captions (#127)
* 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-12-15 17:52:04 +05:30
jtagcat 59f648989a Added shortcode for collapsing texts. 2020-08-23 22:23:37 +05:30
parsiya 984d1a576c add blockquote as shortcode 2020-07-24 22:05:16 +05:30
Aditya Telange bfcf89ccca add shortcode to Insert Raw HTML
{{< rawhtml >}}
  <p class="someclass">
    This is <strong>raw HTML</strong>, inside Markdown.
  </p>
{{< /rawhtml >}}

credits : https://anaulin.org/blog/hugo-raw-html-shortcode/
2020-07-24 21:24:18 +05:30