beautifulSA-jekyll/tags.html

35 lines
1.1 KiB
HTML
Raw Normal View History

---
layout: page
title: 'Tag Index'
---
{%- capture site_tags -%}
{%- for tag in site.tags -%}
{{- tag | first -}}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
{%- endcapture -%}
{%- assign tags_list = site_tags | split:',' | sort -%}
{%- for tag in tags_list -%}
2018-01-19 07:50:23 +01:00
<a href="#{{- tag -}}" class="btn btn-primary tag-btn"><i class="fa fa-tag" aria-hidden="true"></i>&nbsp;{{- tag -}}&nbsp;({{site.tags[tag].size}})</a>
{%- endfor -%}
2018-01-19 07:03:10 +01:00
<div id="full-tags-list">
{%- for tag in tags_list -%}
2018-01-19 07:03:10 +01:00
<h2 id="{{- tag -}}" class="linked-section">
<i class="fa fa-tag" aria-hidden="true"></i>
2018-01-19 07:50:23 +01:00
&nbsp;{{- tag -}}&nbsp;({{site.tags[tag].size}})
2018-01-19 07:03:10 +01:00
</h2>
<div class="post-list">
{%- for post in site.tags[tag] -%}
2018-01-19 07:03:10 +01:00
<div class="tag-entry">
<a href="{{ post.url | relative_url }}">{{- post.title -}}</a>
2018-01-19 07:03:10 +01:00
<div class="entry-date">
<time datetime="{{- post.date | date_to_xmlschema -}}">{{- post.date | date: "%B %d, %Y" -}}</time>
</div>
</div>
{%- endfor -%}
2018-01-19 07:03:10 +01:00
</div>
{%- endfor -%}
2018-01-19 07:03:10 +01:00
</div>