We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 408b4a7 commit 394faa5Copy full SHA for 394faa5
_layouts/category.html
@@ -1,19 +1,10 @@
1
---
2
-layout: default
+layout: archive
3
4
5
-<ul class="posts-list">
6
-
7
- {% assign category = page.category | default: page.title %}
8
- {% for post in site.categories[category] %}
9
- <li>
10
- <h3>
11
- <a href="{{ site.baseurl }}{{ post.url }}">
12
- {{ post.title }}
13
- </a>
14
- <small>{{ post.date | date_to_string }}</small>
15
- </h3>
16
- </li>
17
- {% endfor %}
18
19
-</ul>
+{{ content }}
+
+{% assign entries_layout = page.entries_layout | default: 'list' %}
+<div class="entries-{{ entries_layout }}">
+ {% include posts-category.html taxonomy=page.taxonomy type=entries_layout %}
+</div>
0 commit comments