Rich Content

img/posts/img-5.jpg

Hugo ships with several Built-in Shortcodes for rich content, along with a Privacy Config and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.

 

YouTube privacy enhanced shortcode

The youtube shortcode embeds a responsive video player for YouTube videos. Only the ID of the video is required, e.g.:

YouTube URL:

https://www.youtube.com/watch?v=3qHkcs3kG44

Shortcode:

{{< youtube 3qHkcs3kG44 >}}

Rendered output:

Twitter

You want to include a single tweet into your blog post? Everything you need is the URL of the tweet:

Twitter url:

https://twitter.com/binovarghese_/status/1758148486510317907

Shortcode:

{{< twitter user="binovarghese_" id="1758148486510317907" >}}

Rendered:


Written By

Bino Kochumol Varghese

She was born to be free, let her run wild in her own way and you will never lose her.