-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategories.html
40 lines (38 loc) · 1.36 KB
/
categories.html
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
---
layout: default
title: Categories
subtitle: Categories
---
<div class="content">
<div class="container-fluid">
<div class="row g-0">
{% for category in site.categories %}
<div class="col-md-6 col-xl-4 border-bottom bg-light">
<div class="card-hos w-100 h-100">
<div class="image-responsive-widescreen">
{% assign foundImage = 0 %}
{% assign images = category.content | split:"<img " %}
{% for image in images %}
{% if image contains 'src' %}
{% if foundImage == 0 %}
{% assign html = image | split:"/>" | first %}
<img class="card-img-top img-fluid rounded" {{ html }} loading="lazy" />
{% break %}
{% endif %}
{% endif %}
{% endfor %}
</div>
<div class="card-body-ho">
<h1 class="card-title-hos">
<a class="text-my-color" href="{{ category.url }}">{{ category.name }}</a>
</h1>
<p class="card-info-hos">{{ category.content | truncatewords:8 | markdownify }}</p>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<!-- Return to Top -->
{% include top.html %}