forked from dotnetsheff/dotnetsheff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideos.html
47 lines (40 loc) · 1.53 KB
/
videos.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
layout: page
title: Videos
hero-title: Videos
hero-description: Check out our previous events
hero-image: videos.jpg
learn-more-text: See the videos
order: 2
permalink: /pages/videos/
---
<script src="//fast.wistia.com/assets/external/E-v1.js" async></script>
<script src="/js/jquery.magnific-popup.min.js"></script>
<section id="videos">
<div class="container">
{% assign videos = site.data.videos | sort:"date" | reverse %}
{% for video in videos %}
{% capture thecycle %}{% cycle '1', '2', '3' %}{% endcapture %}
{% if thecycle == '1' %}
<div class="row">
{% endif %}
<div class="col-md-4 col-sm-6 col-xxs-12 animate-box">
<span class="video-item">
{% if video.youtube-id %}
<a class="popup-youtube" href="https://www.youtube.com/watch?v={{ video.youtube-id }}"><img src="https://i.ytimg.com/vi/{{ video.youtube-id }}/hqdefault.jpg" /></a>
{% endif %}
{%if video.wistia-id %}
<div class="wistia_embed wistia_async_{{video.wistia-id}} popover=true popoverAnimateThumbnail=true" style="height:256px;"></div>
{% endif %}
<div class="text">
<h2><a href="https://www.meetup.com/dotnetsheff/events/{{video.meetup-event-id}}" title="{{ video.title }}">{{ video.title }}</a></h2>
<p>{{ video.speaker }} speaking on {{ video.date | date_to_long_string }}</p>
</div>
</span>
</div>
{% if thecycle == '3' %}
</div>
{% endif %}
{% endfor %}
</div>
</section>