-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinks.html
34 lines (34 loc) · 1.15 KB
/
links.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
---
layout: default
title: Links
permalink: /links
---
<section class="links-page">
<h1 class="title">Links</h1>
{% for link in site.data.links %}
{% if link.status != 'NEW' %}
{% capture link_date %}{{link.date | date: "%Y-%m"}}{% endcapture %}
{% if year_month_to_display == null or link_date < year_month_to_display %}
{% if year_month_to_display != null %}
</ul>
{% endif %}
{% capture year_month_to_display %}{{link.date | date: "%Y-%m"}}{% endcapture %}
<h2 class="title">{{year_month_to_display}}</h2>
<ul class="list links-page__list">
{% endif %}
<li class="list__item">
<div class="link">
<a href="{{link.url}}" class="link">
<h3 class="title link__title">{{link.title}}</h3>
</a>
<ul class="list list_row link__tags">
{% for tag in link.tags %}
<li class="list__item link__tag">#{{tag}}</li>
{% endfor %}
</ul>
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</section>