blob: c6177abba70d3b3c6726555a98c5eb58752afccf (
plain) (
blame)
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
|
<div class="row p-3">
<div class="col-md-3 mb-3">
<a href="{{ include.url | prepend: site.baseurl | replace: '//', '/' }}" class="post-date text-muted">
{{ include.date | date: '%F' }}
</a>
</div>
<div class="col-md-9">
<h2 class="title">
{{ include.title }}
</h2>
<div>
{% if include.category %}
{% for category in site.data.categories %}
{% if category.name == include.category %}
{% assign color = category.color | downcase | prepend: 'bg-' %}
{% endif %}
{% endfor %}
<span class="category {% if color %}{{ color }}{% endif %}">{{ include.category }}</span>
{% for tag in include.tags %}
<span class="category">{{ tag }}</span>
{% endfor %}
{% endif %}
</div>
<div class="post-content my-4 text-grey-darker leading-normal text-base font-thin">
{{ include.content }}
</div>
</div>
</div>
|