-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcategories.html
More file actions
34 lines (29 loc) · 945 Bytes
/
categories.html
File metadata and controls
34 lines (29 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: pages.categories.title
permalink: /publications/categories/
---
{% include head.html %}
<body>
{% include header.html %}
<main class="categories">
<h1>Categorías</h1>
<div class="categories-list">
{% assign sortedCategories = site.categories | sort %}
{% for category in sortedCategories %}
<div class="category">
{% capture category_name %}{{ category | first }}{% endcapture %}
<h2 id="{{ category_name | slugize }}">{{ category_name }}</h2>
<div>
{% for post in site.categories[category_name] %}
<article>
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h3>
</article>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</main>
{% include footer.html %}
</body>
</html>