You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
ozgurkon-theme-hugo/layouts/shortcodes/youtube-section.html

15 lines
492 B

{{ $_hugo_config := `{ "version": 1 }` }}
<section class="youtube-section {{ .Get "class" }}">
<div class="inner">
<h2>
{{ .Get "title" }}
</h2>
<div class="youtube-player" style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
<iframe src="//www.youtube.com/embed/{{ .Get "link" }}"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen
title="YouTube Video"></iframe>
</div>
</div>
</section>