diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 04:40:28 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 04:44:43 +0300 |
commit | 3536c1bdd393e956e2fe176d69dd7be49d0d3ef4 (patch) | |
tree | e6e36cafbabd66f213fe9e0b338c60a481fec515 /categories | |
parent | inherit layouts from default.html (diff) | |
download | jekyll-theme-3536c1bdd393e956e2fe176d69dd7be49d0d3ef4.tar.gz jekyll-theme-3536c1bdd393e956e2fe176d69dd7be49d0d3ef4.zip |
add categories.html
Diffstat (limited to '')
-rw-r--r-- | categories.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/categories.html b/categories.html new file mode 100644 index 0000000..06f14ce --- /dev/null +++ b/categories.html @@ -0,0 +1,15 @@ +--- +layout: default +title: Categories +groups: + - navbar +navbar_link: <span class="glyphicon glyphicon-th-list"></span> Categories +--- +{% for category in site.categories %} + <h1><a class="category" href="{{ site.baseurl }}{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1> + <ul> + {% for post in category[1] %} + <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> + {% endfor %} + </ul> +{% endfor %} |