]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - modules/private/websites/immae/history/_includes/post.html
Improve history page
[perso/Immae/Config/Nix.git] / modules / private / websites / immae / history / _includes / post.html
1 <div class="row p-3">
2 <div class="col-md-3 mb-3">
3 <a href="{{ include.url | prepend: site.baseurl | replace: '//', '/' }}" class="post-date text-muted">
4 {{ include.date | date: '%F' }}
5 </a>
6 </div>
7 <div class="col-md-9">
8 <h2 class="title">
9 {{ include.title }}
10 </h2>
11 <div>
12 {% if include.category %}
13
14 {% for category in site.data.categories %}
15 {% if category.name == include.category %}
16 {% assign color = category.color | downcase | prepend: 'bg-' %}
17 {% endif %}
18 {% endfor %}
19 <span class="category {% if color %}{{ color }}{% endif %}">{{ include.category }}</span>
20 {% for tag in include.tags %}
21 <span class="category">{{ tag }}</span>
22 {% endfor %}
23 {% endif %}
24 </div>
25 <div class="post-content my-4 text-grey-darker leading-normal text-base font-thin">
26 {{ include.content }}
27 </div>
28 </div>
29 </div>