Skip to content

Commit

Permalink
Merge pull request #14 from NeurodataWithoutBorders/youtube-video
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter authored Jan 14, 2025
2 parents 07833cc + 018d529 commit dd95a2e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ portfolio_section:
logos:
- logo: /images/portfolio-logo.png
- logo: /images/incf.png
video_section:
enable: true
title: "Learn More About NWB"
video_id: "PMzrIOo0lQs"

news_section:
enable: true
btn_text: See All New
Expand Down
20 changes: 20 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,26 @@ <h3 class="inter-700 text-40 mb-0">{{ .heading | markdownify }}</h3>
{{ end }}
{{/* End Portfolio Section */}}

{{/* Video Section */}}
{{ with .Params.video_section }}
{{ if .enable }}
<section class="section w-100 h-100 bg-light">
<div class="container-lg">
<h2 class="text-center inter-700 text-40 mb-4">{{ .title | markdownify }}</h2>
<div class="ratio ratio-16x9">
<iframe
src="https://www.youtube.com/embed/{{ .video_id }}"
title="YouTube video"
allowfullscreen
class="rounded-3 shadow"
></iframe>
</div>
</div>
</section>
{{ end }}
{{ end }}
{{/* End Video Section */}}

{{/* News And Updates Section */}}
{{ with .Params.news_section }}
{{ if .enable }}
Expand Down

0 comments on commit dd95a2e

Please sign in to comment.