Skip to content

Commit dd95a2e

Browse files
authored
Merge pull request #14 from NeurodataWithoutBorders/youtube-video
2 parents 07833cc + 018d529 commit dd95a2e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

content/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ portfolio_section:
5252
logos:
5353
- logo: /images/portfolio-logo.png
5454
- logo: /images/incf.png
55+
video_section:
56+
enable: true
57+
title: "Learn More About NWB"
58+
video_id: "PMzrIOo0lQs"
59+
5560
news_section:
5661
enable: true
5762
btn_text: See All New

layouts/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@ <h3 class="inter-700 text-40 mb-0">{{ .heading | markdownify }}</h3>
112112
{{ end }}
113113
{{/* End Portfolio Section */}}
114114

115+
{{/* Video Section */}}
116+
{{ with .Params.video_section }}
117+
{{ if .enable }}
118+
<section class="section w-100 h-100 bg-light">
119+
<div class="container-lg">
120+
<h2 class="text-center inter-700 text-40 mb-4">{{ .title | markdownify }}</h2>
121+
<div class="ratio ratio-16x9">
122+
<iframe
123+
src="https://www.youtube.com/embed/{{ .video_id }}"
124+
title="YouTube video"
125+
allowfullscreen
126+
class="rounded-3 shadow"
127+
></iframe>
128+
</div>
129+
</div>
130+
</section>
131+
{{ end }}
132+
{{ end }}
133+
{{/* End Video Section */}}
134+
115135
{{/* News And Updates Section */}}
116136
{{ with .Params.news_section }}
117137
{{ if .enable }}

0 commit comments

Comments
 (0)