diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2018-02-18 01:39:54 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2018-02-18 02:31:58 +0300 |
commit | 3f86aa8f02ab3c13f636934f5fdb560d84339bce (patch) | |
tree | eae46f24870172e3c5e21be38ff37f23ebe61742 /_layouts/category.html | |
parent | bump dependencies (diff) | |
download | blog-3f86aa8f02ab3c13f636934f5fdb560d84339bce.tar.gz blog-3f86aa8f02ab3c13f636934f5fdb560d84339bce.zip |
enable post categories
Diffstat (limited to '_layouts/category.html')
-rw-r--r-- | _layouts/category.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/_layouts/category.html b/_layouts/category.html new file mode 100644 index 0000000..dbb7825 --- /dev/null +++ b/_layouts/category.html @@ -0,0 +1,19 @@ +{% include common/header.html %} +<div class="row"> + <div class="col-md-8"> + <h1>{{ page.title }}</h1> + <p>This is a complete list of posts in the "{{ page.category }}" category.</p> + {% if site.categories[page.category].size > 0 %} + <ul> + {% for post in site.categories[page.category] %} + <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li> + {% endfor %} + </ul> + {% else %} + {% endif %} + </div> + <div class="col-md-4"> + {% include common/sidebar.html %} + </div> +</div> +{% include common/footer.html %} |