[lightMode]
Youtube
This pre-defined component is responsible for displaying Youtube videos that the developer preselects.
Following is the location of this component.
└── src
├── views
├── components
| ├── home
| | ...
| | ├── youtube.twig
...
Example
Variables
Usage
This component needs the youtube_id
variable, which is the video URL, in order to display the embedded YouTube video. Below we can see its code. The default look of this component in the following code:
<section>
<iframe width="560" height="349" src="https://www.youtube.com/embed/{{ youtube_id }}?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</section>
[updatedIn] 10 months ago
Example
Variables
Usage