-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategories.html
41 lines (39 loc) · 1.35 KB
/
categories.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
37
38
39
40
41
---
layout: default
title: Categories
permalink: /categories/
---
{% capture url %}{{ site.url | append: "$" | replace: "/$", "" | replace: "$", "" }}{% endcapture %}
<div class="container">
<div class="section">
<div class="row">
<div class="col s12">
<article>
<div class="card">
<div class="card-content">
<span class="card-title truncate">Categories</span>
<ul class="collapsible" data-collapsible="expandable">
{% for cat in site.categories %}
<li>
{% capture cat_name %}{{ cat | first }}{% endcapture %}
<div class="collapsible-header truncate">{{ cat_name }}</div>
<div class="collapsible-body">
<ul class="collection">
{% for post in site.categories[cat_name] %}
<li class="collection-item truncate">
<strong><time datetime="{{ post.date }}">{{ post.date | date_to_string }}</time></strong><br>
<a href="{{ url }}{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
</article>
</div>
</div>
</div>
</div>