forked from elixirschool/elixirschool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-archive-categories.html
42 lines (41 loc) · 1.38 KB
/
blog-archive-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
42
---
title: Categories
layout: blog
disable_transform: true
exclude_from_chapters: true
permalink: /blog/categories/
---
<nav class="breadcrumb">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/blog/">Blog</a></li>
<li class="is-active">Categories</li>
</ul>
</nav>
<div class="main">
<h1>Categories</h1>
<ul>
{% for topic in site.categories %}
{% assign category_name=topic[0] %}
{% include function-getCategoryMeta name=category_name %}
<li><a href="#{{ topic[0] | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category-meta.caption }} ({{ topic[1].size }})</a></li>
{% endfor %}
</ul>
<hr>
{% for topic in site.categories %}
{% assign category_name=topic[0] %}
{% include function-getCategoryMeta name=category_name %}
<h2 id="{{ topic[0] | downcase | url_escape | strip | replace: ' ', '-' }}">{{ category-meta.caption }}</h2>
{{ category-meta.description | markdownify }}
<ul class="showcase">
{% assign pages_list = topic[1] %}
{% for post in pages_list %}
{% if post.title != null %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a> <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%B %d, %Y" }}</time></li>
{% endif %}
{% endfor %}
{% assign pages_list = nil %}
{% assign category_name=nil %}
</ul>
{% endfor %}
</div>