Hugo Lbry Shortcode
One thing I like about Hugo is how easy it is to expand its functionality with your own code.
For example was able to create a shortcode to embed Lbry.tv videos into a post in around five minutes.
First I created an empty file layouts/shortcodes/lbry.html
which I pasted the basic embed code take from the share button on one of their videos.
<iframe id="lbry-iframe" width="560" height="315" src="https://lbry.tv/$/embed/this-new-fedora-powered-thinkpad-p53-is/097106eb68aebc90b33d83bb053467af942a8e20" allowfullscreen></iframe>
Then parameterized this so that the src url can be changed.
<iframe id="lbry-iframe" width="560" height="315" src="{{.Get 0 }}" allowfullscreen></iframe>
You can then call this with a shortcode like the following to embed the video.
Which will appear like this
The possibilities are endless creating shortcodes to do custom HTML in posts.