layout | title |
---|---|
normal |
Fiction Films |
{% assign no_of_videos = site.data.fiction-films | size %}
{% assign count = 0 %}
{% assign half = no_of_videos | divided_by: 2 %}
{% for item in (1..half) %}
{% if site.data.fiction-films.first %}
{% for j in (1..2) %}
{% assign count = count | plus:1 %}
{% endfor %}
{% if site.data.fiction-films[count].videotype == 'youtube' %}
<iframe src="https://www.youtube.com/embed/{{ site.data.fiction-films[count].videoID }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
{% elsif site.data.fiction-films[count].videotype == 'vimeo' %}
<iframe src="https://player.vimeo.com/video/{{ site.data.fiction-films[count].videoID }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
{% endif %}
My Contribution: {{ site.data.fiction-films[count].contrib }}
- Awards: {% for entry in site.data.fiction-films[count].Awards %}
- {{ entry.award }}
{% if entry.awardinfo %}
{{ entry.awardinfo }} {% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% assign odd_videos = no_of_videos | modulo: 2 %}
{% if odd_videos != 0 %}
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal text-title"><strong>{{ site.data.fiction-films[count].videotitle }}</strong></h4>
</div>
<div class="card-body">
<div class="embed-responsive embed-responsive-16by9">
{% if site.data.fiction-films[count].videotype == 'youtube' %}
<iframe src="https://www.youtube.com/embed/{{ site.data.fiction-films[count].videoID }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
{% elsif site.data.fiction-films[count].videotype == 'vimeo' %}
<iframe src="https://player.vimeo.com/video/{{ site.data.fiction-films[count].videoID }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
{% endif %}
</div>
<h5><br>{{site.data.fiction-films[count].videodescription }}</h5><br>
<p><span class="font-weight-bold">My Contribution:</span> {{ site.data.fiction-films[count].contrib }}</p>
<ul class="list-unstyled mt-3 mb-4">
<li class="font-weight-bold">Awards:</li>
{% for entry in site.data.fiction-films[count].Awards %}
<li>{{ entry.award }}
{% if entry.awardinfo %}
<span class="text-muted">
<br>{{ entry.awardinfo }}
</span>
{% endif %}
</li><br>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}