This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
migrated-videos.html
58 lines (53 loc) · 2.1 KB
/
migrated-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
48
49
50
51
52
53
54
55
56
57
58
{% include layout/header.html %}
<div class="content-container videos-list">
<aside class="sidebar">
<button class="toc-toggler">Table of Contents</button>
<div class="sidebar-wrapper">
<ul>
<li class="level-0 {% if page.url == '/videos/' %}active{% endif %}"><a href="{{ site.baseurl }}/videos/">All Videos</a></li>
<li><span class="nav-header">Playlists</span></li>
{% assign playlists = site.videos | where: 'layout', 'migrated-video' | group_by: 'group' %}
{% for playlist in playlists %}
{% if playlist.name.size > 0 %}
{% assign url_parts = playlist.items[0].url | split: '/' %}
{% assign url_parts_size = url_parts | size %}
{% assign rm = url_parts[2] %}
<li class="{% if playlist.name == page.group %}active{% endif %}"><a href="{{site.baseurl}}/videos/{{ rm }}/">{{ playlist.name }} <i class="item-count">{{ playlist.items.size }} videos</i></a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</aside>
<section class="content">
<div class="content-wrap">
<header class="content-header">
<div class="message-banner">
<b>This page has <a href="{{ page.migrated_to }}">moved</a> and will be redirected soon. See <a href="{{ site.baseurl }}/migrated.html">Migrated topics</a> for the complete list.</b>
</div>
{% include layout/page-header.html %}
</header>
<main>
{{ content }}
{% assign sorted_videos = site.videos | where: 'layout', 'migrated-video' | sort: 'date' | reverse %}
{% if page.group != nil %}
{% assign sorted_videos = sorted_videos | where: 'group', page.group | sort: 'menu_order' %}
{% endif %}
<div class="videos">
{% for video in sorted_videos %}
{% include video/preview.html %}
{% endfor %}
</div>
</main>
</div>
</section>
<!-- /.content -->
</div> <!-- /.container -->
{% include layout/footer.html %}
<style>
main {
filter: opacity(30%);
}
section .page-intro {
filter: opacity(30%);
}
</style>