Anxhelo Lushka
7 years ago
committed by
GitHub
1 changed files with 35 additions and 0 deletions
@ -0,0 +1,35 @@ |
|||||
|
--- |
||||
|
layout: default |
||||
|
title: "#Tags" |
||||
|
permalink: /tags/index.html |
||||
|
--- |
||||
|
|
||||
|
<div class="tags"> |
||||
|
{% assign tags_list = site.tags %} |
||||
|
{% if tags_list.first[0] == null %} |
||||
|
{% for tag in tags_list %} |
||||
|
<a data-scroll href="#{{ tag | slugify }}">{{ tag }}</a> |
||||
|
{% endfor %} |
||||
|
{% else %} |
||||
|
{% for tag in tags_list %} |
||||
|
<a data-scroll href="#{{ tag[0] | slugify }}">{{ tag[0] }}</a> |
||||
|
{% endfor %} |
||||
|
{% endif %} |
||||
|
{% assign tags_list = nil %} |
||||
|
</div> |
||||
|
|
||||
|
{% for tag in site.tags %} |
||||
|
<span class="tag-title" id="{{ tag[0] | slugify }}">{{ tag[0] }}</span> |
||||
|
<ul class="post-list"> |
||||
|
{% assign pages_list = tag[1] %} |
||||
|
{% for post in pages_list reversed %} |
||||
|
{% if post.title != null %} |
||||
|
{% if group == null or group == post.group %} |
||||
|
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}<span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></a></li> |
||||
|
{% endif %} |
||||
|
{% endif %} |
||||
|
{% endfor %} |
||||
|
{% assign pages_list = nil %} |
||||
|
{% assign group = nil %} |
||||
|
</ul> |
||||
|
{% endfor %} |
Loading…
Reference in new issue