sarsooxyz.hugo/layouts/shortcodes/giphy.html

7 lines
338 B
HTML
Raw Normal View History

2022-09-13 22:13:10 +01:00
<!-- https://todayilearned.jm3.net/learnings/hugo-shortcode-for-giphy-embeds/ -->
<div style="width:100%;height:0;padding-bottom:40%;position:relative;">
<iframe src="https://giphy.com/embed/{{ (index .Params 0) }}"
width="100%" height="100%" style="position:absolute"
frameBorder="0" allowFullScreen>
</iframe>
</div>