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:
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:
I’m a night owl who loves the dark hours. I often go for walks at night, enjoying the city lights, the yellow glow, and the people around me.
— Bino Kochumol Varghese ⚡ (@binovarghese_) February 15, 2024
Here are some photos I took from the night walks in Bahrain#photography #Bahrainhttps://t.co/OzoJjNRH67
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.
Use the share button below if you liked it.
It makes me smile, when I see it.