diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-02-06 20:28:34 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-02-06 20:28:34 +0700 |
commit | e7092c203e5ce813b645e418d9e05ef34b3ca784 (patch) | |
tree | d4185431150f1b94cc1a2ae3c3e5820f7174ca79 | |
parent | 30e8748fa6be7a047ed9ee3ecf2b52dc51cd6cfb (diff) | |
download | blog-e7092c203e5ce813b645e418d9e05ef34b3ca784.tar.gz |
Add category page
-rw-r--r-- | categories.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/categories.html b/categories.html new file mode 100644 index 0000000..4d68836 --- /dev/null +++ b/categories.html @@ -0,0 +1,24 @@ +--- +layout: page +permalink: /categories/ +title: Categories +--- + + +<div id="archives"> +{% for category in site.categories %} + <div class="archive-group"> + {% capture category_name %}{{ category | first }}{% endcapture %} + <div id="#{{ category_name | slugize }}"></div> + <p></p> + + <h3 class="category-head">{{ category_name |capitalize }}</h3> + <a name="{{ category_name | slugize }}"></a> + {% for post in site.categories[category_name] %} + <article class="archive-item"> + <h4><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h4> + </article> + {% endfor %} + </div> +{% endfor %} +</div> |