aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae/history/_includes/post.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/websites/immae/history/_includes/post.html')
-rw-r--r--modules/private/websites/immae/history/_includes/post.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/private/websites/immae/history/_includes/post.html b/modules/private/websites/immae/history/_includes/post.html
new file mode 100644
index 0000000..04f4a77
--- /dev/null
+++ b/modules/private/websites/immae/history/_includes/post.html
@@ -0,0 +1,26 @@
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 {% endif %}
21 </div>
22 <div class="post-content my-4 text-grey-darker leading-normal text-base font-thin">
23 {{ include.content }}
24 </div>
25 </div>
26 </div>