diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-07 18:24:25 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-06-07 19:13:08 +0200 |
commit | 7130402cfecc196ce79c8f07a9dba71974f085e3 (patch) | |
tree | 072e82de987c0a1f9d1fac8be9c8f097e9a9f37f /modules/private/websites/immae/history/_includes/post.html | |
parent | fe4199f8ab922735b81557f71199fa73a378e540 (diff) | |
download | Nix-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.html | 26 |
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> | ||