Hugo Shortcodes Library
GitHubToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Giphy

A Hugo shortcode to embed Giphy gifs.

How to use

# file.md

{{< giphy g7GKcSzwQfugw >}}

Shortcode

# giphy.html

<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>

Sample