forked from adamdjbrett/relcfp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.html
34 lines (30 loc) · 1.22 KB
/
tag.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: Tags
description : Hastag Relcfp
---
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
<div class="container">
<h2 style="text-align: center;">Tags of Relcfp site</h2>
<div class="tag__list">
{% for this_word in tag_words %}
<div class="list__items"><a href="#{{ this_word | cgi_escape }}">{{ this_word }} <span>({{ site.tags[this_word].size }})</span></a></div>
{% endfor %}
</div>
<div class="tags__row">
{% for this_word in tag_words %}
<div class="tags__results">
<h3 id="{{ this_word | cgi_escape }}">{{ this_word }}</h3>
<div class="tags__items">
{% for post in site.tags[this_word] %}{% if post.title != null %}
<div class="item">
<span><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></span>
<small><span>| {{ post.date | date_to_string }}</span></small>
</div>
{% endif %}{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>