-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcategories.html
More file actions
23 lines (21 loc) · 708 Bytes
/
categories.html
File metadata and controls
23 lines (21 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: page
title: categories
published: false
---
{%- assign sortedTags = site.categories | sort -%}
<div class="mb-3" itemscope itemtype="http://schema.org/Blog">
<nav class="nav nav-pills">
{%- for tag in sortedTags -%}
<a href="#{{ tag[0] | slugify }}" class="nav-link smoothScroll">{{ tag[0] }} ({{ tag[1] | size }})</a>
{%- endfor -%}
</nav>
<hr />
{%- for tag in sortedTags -%}
<fieldset id="{{ tag[0] | slugify }}" class="mt-3">
<legend class="border-bottom">{{ tag[0] }}</legend>
{%- assign tagPosts = tag[1] -%}
{%- include archive_post.html show_tags=false collection=tagPosts -%}
</fieldset>
{%- endfor -%}
</div>