-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVlog.html
41 lines (30 loc) · 1.25 KB
/
Vlog.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
---
layout: page
permalink: /vlogs/
title: Secret space for <span style='color:#e32724'>Vlogs</span>!
description: >
😱😮Oops, you found my secret space!!! <br>
Here are my memorable vlogs! <span style='color:#cc5a1d'>Please keep the secret</span>🙊🙊🙊.
---
{% include collectvlogscategories.html %} <!-- include function, to get variables: vlogs_categories-->
<div id="archives">
{% for category in vlogs_categories %}
<div class="archive-group">
<h1 class="category-head">{{ category | replace: "-", " " }}</h1> <!--replace the '-' to ' ', which means category name with more than one words needs to connect with '-' -->
{% assign sorted_vlogs = site.vlogs | sort: 'date' | reverse %}
{% for vlog in sorted_vlogs %}
{% if vlog.categories contains category %}
<article class="recent-posts">
<p style="line-height: 0.8;">
<small>[{{ vlog.date | date_to_string }}]</small>  
<a href="{{ site.baseurl }}{{ vlog.url }}">{{ vlog.title }}</a>
</p>
</article>
{% endif %}
{% endfor %}
<hr>
</div>
{% endfor %}
</div>
<br>
<a style="text-decoration:none;" href="{{ '/timeline' | relative_url }}"><h1>Timeline of posts</h1></a>