diff options
Diffstat (limited to '_includes/categories')
-rw-r--r-- | _includes/categories/category.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_includes/categories/category.html b/_includes/categories/category.html new file mode 100644 index 0000000..78d5aa0 --- /dev/null +++ b/_includes/categories/category.html @@ -0,0 +1,9 @@ +<p>This is a list of posts in category "{{ include.category }}".</p> +{% if site.categories[include.category].size > 0 %} + <ul> + {% for post in site.categories[include.category] %} + <li><a href="{{ post.url | relative_url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> + {% endfor %} + </ul> +{% endif %} +<p>For a complete list of posts grouped by category, please see <a href="{{ '/all/' | relative_url }}">this page</a>.</p> |