Skip to content

Commit 394faa5

Browse files
authoredJan 5, 2022
Update category.html
1 parent 408b4a7 commit 394faa5

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed
 

‎_layouts/category.html

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
---
2-
layout: default
2+
layout: archive
33
---
44

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>
5+
{{ content }}
6+
7+
{% assign entries_layout = page.entries_layout | default: 'list' %}
8+
<div class="entries-{{ entries_layout }}">
9+
{% include posts-category.html taxonomy=page.taxonomy type=entries_layout %}
10+
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.