This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-videos-clips.html
52 lines (46 loc) · 1.6 KB
/
archive-videos-clips.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
---
layout: page
title: Archived Techlore Clips
permalink: /videos/archived-techlore-clips
sitemap: false
description: ""
---
{% include c_sub-hero.html title=page.title perex=page.description %}
<section>
<div class="container">
{%- if site.clips.size > 0 -%}
{% assign sortedVideos = site.clips | sort: "datePublished" | reverse | slice: site.archive.itemsToShow, site.clips.size %}
{% assign groupedVideos = "" %}
{%- for video in sortedVideos -%}
{% assign videoDate = video.datePublished | date: "%Y-%m" %}
{% assign groupedVideos = groupedVideos | append: videoDate | append: "," %}
{%- endfor -%}
{% assign monthArray = groupedVideos | split: "," | uniq %}
{%- for month in monthArray -%}
{% assign title = month | append: "-01" | date: "%B, %Y" %}
{%- include c_box-header.html title=title -%}
<div class="box has-border p-6-custom-responsive">
<ul class="archive listless marginless">
{%- for video in sortedVideos -%}
{% assign videoDate = video.datePublished | date: "%Y-%m" %}
{% if videoDate == month %}
{% include c_archive-item.html
title=video.title
datePublished=video.datePublished
linkForum=video.linkForum
linkPeerTube=video.linkPeerTube
linkOdysee=video.linkOdysee
linkYouTube=video.linkYouTube
%}
{% endif %}
{%- endfor -%}
</ul>
</div>
{% include c_box-footer.html
link=site.data._en.navigation.hiddenNav.allTechloreClips.url
title=site.data._en.content.global.back.backToVideos
%}
{%- endfor -%}
{%- endif -%}
</div>
</section>