generated from nighthawkcoders/Nighthawk-Pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBC_tags.html
36 lines (31 loc) · 1.08 KB
/
BC_tags.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
---
layout: categories
permalink: /categories/
title: Tags
search_exclude: true
---
{% if site.categories.size > 0 %}
<h2>Contents</h2>
{% assign categories = "" | split:"" %}
{% for c in site.categories %}
{% assign categories = categories | push: c[0] %}
{% endfor %}
{% assign categories = categories | sort_natural %}
<ul>
{% for category in categories %}
<li><a href="#{{ category }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% for category in categories %}
<h3 id ="{{ category }}"><i class="fas fa-tags category-tags-icon"></i></i> {{ category }}</h3>
<a name="{{ category | slugize }}"></a>
{% for post in site.categories[category] %}
{% if post.hide != true %}
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<article class="archive-item">
<p class="post-meta post-meta-title"><a class="page-meta" href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a> • {{ post.date | date: date_format }}</p>
</article>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}