-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcategories.html
More file actions
44 lines (37 loc) · 1.27 KB
/
categories.html
File metadata and controls
44 lines (37 loc) · 1.27 KB
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
35
36
37
38
39
40
41
42
43
44
---
layout: page
title: Categories
background: "/assets/images/bg-posts.jpg"
---
<div id="archives">
{% for category in site.categories %}
<div class="archive-group">
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="{{ category_name | slugify }}"></div>
<p></p>
<h2 class="category-head bg-dark text-light p-2 text-center">{{ category_name }}</h2>
<a name="{{ category_name | slugify }}"></a>
<p></p>
{% for post in site.categories[category_name] %}
<article class="archive-item">
<a href="{{ site.baseurl }}/{{ post.url }}" class="text-decoration-none">
<h2 class="post-title">{{post.title}}</h2>
{% if post.subtitle %}
<h3 class="post-subtitle font-weight-light">{{ post.subtitle }}</h3>
{% else %}
<h3 class="post-subtitle font-weight-light">
{{ post.excerpt | strip_html | truncatewords: 15 }}
</h3>
{% endif %}
</a>
<p class="post-meta my-0">
Posted by {% if post.author %} {{ post.author }} {% else %} {{ site.author
}} {% endif %} on {{ post.date | date: '%B %d, %Y' }} · {% include
read_time.html content=post.content %}
</p>
</article>
<hr />
{% endfor %}
</div>
{% endfor %}
</div>