aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae/history/_includes/post.html
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-07 18:24:25 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-07 19:13:08 +0200
commit7130402cfecc196ce79c8f07a9dba71974f085e3 (patch)
tree072e82de987c0a1f9d1fac8be9c8f097e9a9f37f /modules/private/websites/immae/history/_includes/post.html
parentfe4199f8ab922735b81557f71199fa73a378e540 (diff)
downloadNix-7130402cfecc196ce79c8f07a9dba71974f085e3.tar.gz
Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.tar.zst
Nix-7130402cfecc196ce79c8f07a9dba71974f085e3.zip
Add history page
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>