Skip to content
Utkarsh Verma edited this page Apr 26, 2018 · 2 revisions

Demo Dream Plus supports easy YouTube video embedding through the usage of Hugo shortcodes. The embedding is simple, just enter your YouTube video ID within the shortcodes like this {{< youtube wEwncJ5RnA0 >}}.

The above stated shortcode will be built by Hugo as:

<div class="youtube container">
    <iframe class="youtube" type="text/html"
        src="https://www.youtube.com/embed/wEwncJ5RnA0"
        allowfullscreen frameborder="0">
    </iframe>
</div>

Even though Hugo has a default YouTube shortcode, Dream Plus uses a modified shortcode for YouTube video embedding for formatting purposes.

Clone this wiki locally