aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-02-18 04:48:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-02-18 04:48:46 +0300
commit9e4dcb0c9a714efa73578832f35829c3e0c598ed (patch)
tree66992eaf74bf0fc6d1201d6358561bf9cb60891a /_layouts
parentpeculiar: move to _posts/ (diff)
downloadjekyll-theme-9e4dcb0c9a714efa73578832f35829c3e0c598ed.tar.gz
jekyll-theme-9e4dcb0c9a714efa73578832f35829c3e0c598ed.zip
add post dates to category pages
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/category.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/_layouts/category.html b/_layouts/category.html
index dbb7825..b58f691 100644
--- a/_layouts/category.html
+++ b/_layouts/category.html
@@ -1,12 +1,12 @@
{% include common/header.html %}
<div class="row">
<div class="col-md-8">
- <h1>{{ page.title }}</h1>
+ <h1>Category: {{ 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>
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
{% endfor %}
</ul>
{% else %}