-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshowcase.html
More file actions
147 lines (133 loc) · 4.4 KB
/
showcase.html
File metadata and controls
147 lines (133 loc) · 4.4 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
layout: default
title: Showcase
group: "navigation"
disqus: true
---
<h1 id="showcase" class="page-header">{{ page.title }}</h1>
<h2>Projects</h2>
<div style="padding: 2em"></div>
<!-- place somewhere in the <body> of your page -->
<section class="slider">
<div class="flexslider">
<ul class="slides">
{% for project in site.data.projects %}
{% if project.image %}
{% if project.thumbnail %}
<li data-thumb="assets/showcase/{{ project.thumbnail }}">
{% else %}
<li data-thumb="assets/showcase/{{ project.image }}">
{% endif %}
<a href="{{ project.url }}" target="_blank">
<img src="assets/showcase/{{ project.image }}"
alt="{{ project.title }}"
title="{{ project.title }}"/>
</a>
{% if project.description %}
<p class="flex-caption">{{ project.description }}</p>
{% endif %}
</li>
{% else if project.video %}
<li class="slide play3">
<iframe width="560" height="200" id="youtubevideo"
title="{{ project.title }}"
src="http://www.youtube.com/embed/{{ project.video.youtube_id}}?enablejsapi=1&version=3&playerapiid=youtubevideo&vq=hd720"
allowfullscreen frameborder="0"></iframe>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>
<!-- Load FlexSlider Library -->
<script src="js/flexslider/jquery.flexslider-min.js"></script>
<!-- Load FlexSlider style -->
<link href="js/flexslider/flexslider.css" rel="stylesheet">
<!-- Load custom slider style -->
<link rel="stylesheet" href="slider.css" type="text/css">
<script src="http://a.vimeocdn.com/js/froogaloop2.min.js"></script>
<!-- Load YouTube player -->
<script src="js/flexslider-youtube.js"></script>
<script src="js/jquery.fitvids.js"></script>
<script type="text/javascript">
// Initialize FlexSlider
$(window).load(function() {
$('.flexslider')
.fitVids()
.flexslider({
animation: "slide",
//controlNav: "thumbnails",
directionNav: true,
// TODO: need to stop slideshow while playing videos to handle this
slideshow:false,
slideshowSpeed: 7500,
animationLoop: true,
animationSpeed: 600,
pauseOnAction: true,
pauseOnHover: true,
touch: true,
smoothHeight: true,
video: true,
before: function(slider){
if (slider.slides.eq(slider.currentSlide).find('iframe').length !== 0)
$f( slider.slides.eq(slider.currentSlide).find('iframe').attr('id') ).api('pause');
}
});
});
</script>
<div style="padding: 2em"></div>
<h2>Papers</h2>
<div class="table-responsive">
<table class="table table-condensed" id="status">
<thead>
<tr>
<td>Title</td>
<td>Authors</td>
<td>Conference/Book</td>
<td>Year</td>
<td>File</td>
</tr>
</thead>
<tbody>
{% for paper in site.data.papers %}
<tr id="{{ paper.id }}">
<td id="{{ paper.id }}-title">{{ paper.title }}</td>
<td id="{{ paper.id }}-authors">
{% for author in paper.author %}
<!-- Given names like Jean-Paul become J.-P. -->
<!-- TODO: remove extra whitespace, i.e. J. -P. -->
{% assign given_names = author.given | split:'-' %}
{% for n in given_names %}
{% if forloop.index > 1 %}
-{{ n | truncate: 2, '.' }}
{% else %}
{{ n | truncate: 2, '.' }}
{% endif %}
{% endfor %}
{% if forloop.index < forloop.length %}
{{author.family}},
{% else %}
{{author.family}}
{% endif %}
{% endfor %}
</td>
{% if paper.container-title %}
<td id="{{ paper.id }}-book-title">{{paper.container-title}}</td>
{% else if paper.type == 'thesis' %}
<td id="{{ paper.id }}-thesis">Thesis</td>
{% endif %}
<td id="{{ paper.id }}-year">{{paper.year}}</td>
<td id="{{ paper.id }}-url">
{% if paper.URL %}
<a href="{{ paper.URL }}" target="_blank">
<span class='glyphicon glyphicon-file'></span>
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div style="padding: 10em"></div>
<!-- vim: set ts=2 sw=2 ft=liquid si: -->