Skip to content

Latest commit

 

History

History
83 lines (82 loc) · 4.27 KB

fiction-films.md

File metadata and controls

83 lines (82 loc) · 4.27 KB
layout title
normal
Fiction Films

FICTION FILMS/ NARRATIVES

{% 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) %}

{{ site.data.fiction-films[count].videotitle }}

{% 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 %}

{{site.data.fiction-films[count].videodescription }}

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 %}
{% assign count = count | plus:1 %} {% 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 %}